Skip to content

Commit

Permalink
Add newlines test
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Jun 30, 2024
1 parent 0881fab commit 9681ff0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tivars.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ def test_modes(self):
b'\xbb\xbdWHITE*+WHITE+\xebWHITE>\xbb\xc0\xbb\xc2\xbb\xb6\xbb\xbdWHITE>'
b'\xbb\xc0\xbb\xc2\xbb\xb6\xbb\xbdABCDEF')

def test_newlines(self):
lines = "For(A,1,10", "Disp A", "End"
self.assertEqual(TIProgram("\n".join(lines)), TIProgram("\r\n".join(lines)))


class NumericTests(unittest.TestCase):
def real_float_test(self, real_type, filename, name, sign, exponent, mantissa, string, dec):
Expand Down

0 comments on commit 9681ff0

Please sign in to comment.