diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2023-03-29 16:26:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 16:26:26 +0200 |
commit | 9b4af216900704b05040f6314138c8621898c10c (patch) | |
tree | fc38e86a04b6a9d5b791ae2c20a3e7c18a5f5e07 /tests/snippets/javascript/test_binary_literal_positive_matches.txt | |
parent | a1dfcc09051a76b0171da4f6150a82fed168d759 (diff) | |
download | pygments-git-9b4af216900704b05040f6314138c8621898c10c.tar.gz |
Move more tests to tests/snippets instead of .py files (#2344)
These are easier to update in tests/snippets/ (just run with
--update-goldens).
Diffstat (limited to 'tests/snippets/javascript/test_binary_literal_positive_matches.txt')
-rw-r--r-- | tests/snippets/javascript/test_binary_literal_positive_matches.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/snippets/javascript/test_binary_literal_positive_matches.txt b/tests/snippets/javascript/test_binary_literal_positive_matches.txt new file mode 100644 index 00000000..9773c95b --- /dev/null +++ b/tests/snippets/javascript/test_binary_literal_positive_matches.txt @@ -0,0 +1,15 @@ +---input--- +// Test literals that should be tokenized as binary literals. +0b01 +0B10n + +---tokens--- +'' Text +'// Test literals that should be tokenized as binary literals.' Comment.Single +'\n' Text.Whitespace + +'0b01' Literal.Number.Bin +'\n' Text.Whitespace + +'0B10n' Literal.Number.Bin +'\n' Text.Whitespace |