Skip to content

Commit

Permalink
remove debug statements from test
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Sep 3, 2023
1 parent d7023a5 commit fab68bd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Content.Tests/DMProject/Tests/Text/findlasttext.dm
Original file line number Diff line number Diff line change
@@ -1,33 +1,18 @@
/proc/RunTest()
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "f", 0, -1))
ASSERT(findlasttext("abcdefg", "f", 0, -1) == 0)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "f", 0, -2))
ASSERT(findlasttext("abcdefg", "f", 0, -2) == 6)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "f", 6))
ASSERT(findlasttext("abcdefg", "f", 6) == 6)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "f", 5))
ASSERT(findlasttext("abcdefg", "f", 5) == 0)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "bc", 2))
ASSERT(findlasttext("abcdefg", "bc", 2) == 2)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "ab", 10))
ASSERT(findlasttext("abcdefg", "ab", 10) == 1)
file("/home/amy/test.txt") << json_encode(findlasttext("abcdefg", "f", 5))
ASSERT(findlasttext("abcdefg", "f", 5) == 0)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", -3))
ASSERT(findlasttext("Banana", "na", -3) == 3)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", -5))
ASSERT(findlasttext("Banana", "na", -5) == 0)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", 0))
ASSERT(findlasttext("Banana", "na", 0) == 5)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", 3))
ASSERT(findlasttext("Banana", "na", 3) == 3)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", 2))
ASSERT(findlasttext("Banana", "na", 2) == 0)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", 5))
ASSERT(findlasttext("Banana", "na", 5) == 5)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", 50))
ASSERT(findlasttext("Banana", "na", 50) == 5)
file("/home/amy/test.txt") << json_encode(findlasttext("Banana", "na", -50))
ASSERT(findlasttext("Banana", "na", -50) == 0)
ASSERT(findlasttext("abcdefg", "f", 6, -50) == 6)
ASSERT(findlasttext("abcdefg", "f", 6, 50) == 0)
Expand Down

0 comments on commit fab68bd

Please sign in to comment.