Skip to content

Commit

Permalink
Remove unneeded test
Browse files Browse the repository at this point in the history
  • Loading branch information
neuroevolutus committed Jan 8, 2025
1 parent b290890 commit 2017f9b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions scrapscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,25 +1844,6 @@ def test_read_char_appends_to_line(self) -> None:
l.read_char()
self.assertEqual(l.line, "")

def test_read_token_sets_start_and_end_line_numbers(self) -> None:
l = Lexer("a b \n c d")
a = l.read_token()
b = l.read_token()
c = l.read_token()
d = l.read_token()

self.assertEqual(a.source_extent.start.line_number, 1)
self.assertEqual(a.source_extent.end.line_number, 1)

self.assertEqual(b.source_extent.start.line_number, 1)
self.assertEqual(b.source_extent.end.line_number, 1)

self.assertEqual(c.source_extent.start.line_number, 2)
self.assertEqual(c.source_extent.end.line_number, 2)

self.assertEqual(d.source_extent.start.line_number, 2)
self.assertEqual(d.source_extent.end.line_number, 2)

def test_read_token_sets_source_extents_for_variables(self) -> None:
l = Lexer("aa bbbb \n ccccc ddddddd")

Expand Down

0 comments on commit 2017f9b

Please sign in to comment.