Skip to content

Commit

Permalink
Apparently passing most spec test cases now
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotwrobson committed May 8, 2024
1 parent 206625b commit 61ac028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chevron2/tokenize_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def mustache_tokenizer(
# TODO give a better error message.
raise ex.Chevron2Error("Tag not closed.")
elif text[tag_type_loc] == "!":
new_token_type = TokenType.VARIABLE
new_token_type = TokenType.COMMENT
elif text[tag_type_loc] == "#":
new_token_type = TokenType.SECTION
elif text[tag_type_loc] == "^":
Expand Down Expand Up @@ -491,5 +491,5 @@ def mustache_tokenizer(
)

cursor_loc = next_literal_end
print(res_list)
#print(res_list)
return res_list
1 change: 1 addition & 0 deletions tests/test_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def test_spec_from_folder(datadir: Path) -> None:
if did_case_fail:
print(full_test_case_name)
print(repr(result), repr(test_case["expected"]))
#assert False, "uncomment to remove fail-fast"

if full_test_case_name not in EXPECTED_TO_FAIL:
any_fail = any_fail or did_case_fail
Expand Down

0 comments on commit 61ac028

Please sign in to comment.