Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartjohnpage committed Mar 8, 2024
1 parent 7d0bcd9 commit efd3c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recursive_chunk_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ defmodule TextChunkerTest do
" if (this.inventory[petType] && this.inventory[petType] >= quantity) {",
"\n this.inventory[petType] -= quantity;\n return true;\n } else {",
"\n return false;\n }\n }",
"\n\n getPetCount(petType) {\n return this.inventory[petType] || 0; \n }\n}"
"\n\n getPetCount(petType) {\n return this.inventory[petType] || 0; \n }\n}\n"
]

assert result == expected_result
Expand All @@ -349,7 +349,7 @@ defmodule TextChunkerTest do
" if (this.inventory[petType] && this.inventory[petType] >= quantity) {",
"\n this.inventory[petType] -= quantity;\n return true;\n } else {",
"\n return true;\n } else {\n return false;\n }\n }",
"\n\n getPetCount(petType) {\n return this.inventory[petType] || 0; \n }\n}"
"\n\n getPetCount(petType) {\n return this.inventory[petType] || 0; \n }\n}\n"
]

assert result == expected_result
Expand Down

0 comments on commit efd3c98

Please sign in to comment.