blob: f19aaa69a3f7554a3e934f2f5fae0245fa2a066f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# Test for normalize_newlines functionality
# This test verifies that test framework handles various newline combinations correctly
# Note: This is more of an integration test since normalize_newlines is in the test framework
# The actual testing happens when this test is run through run-tests.py
print("Testing newline handling")
print("Line 1\r\nLine 2") # Windows-style line ending - should be normalized
print("Line 3") # Normal line
print("Line 4") # Normal line
print("Line 5\nLine 6") # Unix-style line ending - already normalized
# Test that literal \r in strings is preserved
print(repr("test\rstring")) # Should show 'test\rstring' not 'test\nstring'
|