Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Unified Diff: lib/src/prism/tests/languages/yaml/number_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/prism/tests/languages/yaml/number_feature.test
diff --git a/lib/src/prism/tests/languages/yaml/number_feature.test b/lib/src/prism/tests/languages/yaml/number_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..409163f108f83465c8e5cf149ca0400fd74fc94a
--- /dev/null
+++ b/lib/src/prism/tests/languages/yaml/number_feature.test
@@ -0,0 +1,38 @@
+---
+foo: 0xBadFace
+bar: 0o754
+baz: 42
+foo: 3.14159
+bar: 4e8
+baz: 3.1E-7
+foo: 0.4e+2
+bar: -0xFF
+baz: +0o123
+
+----------------------------------------------------
+
+[
+ ["punctuation", "---"],
+ ["key", "foo"], ["punctuation", ":"],
+ ["number", "0xBadFace"],
+ ["key", "bar"], ["punctuation", ":"],
+ ["number", "0o754"],
+ ["key", "baz"], ["punctuation", ":"],
+ ["number", "42"],
+ ["key", "foo"], ["punctuation", ":"],
+ ["number", "3.14159"],
+ ["key", "bar"], ["punctuation", ":"],
+ ["number", "4e8"],
+ ["key", "baz"], ["punctuation", ":"],
+ ["number", "3.1E-7"],
+ ["key", "foo"], ["punctuation", ":"],
+ ["number", "0.4e+2"],
+ ["key", "bar"], ["punctuation", ":"],
+ ["number", "-0xFF"],
+ ["key", "baz"], ["punctuation", ":"],
+ ["number", "+0o123"]
+]
+
+----------------------------------------------------
+
+Checks for numbers.
« no previous file with comments | « lib/src/prism/tests/languages/yaml/null_feature.test ('k') | lib/src/prism/tests/languages/yaml/scalar_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698