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

Unified Diff: lib/src/prism/tests/languages/elixir/capture_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/elixir/capture_feature.test
diff --git a/lib/src/prism/tests/languages/elixir/capture_feature.test b/lib/src/prism/tests/languages/elixir/capture_feature.test
new file mode 100644
index 0000000000000000000000000000000000000000..8a64b6615455050f9f3bf12ecec7d991103112fc
--- /dev/null
+++ b/lib/src/prism/tests/languages/elixir/capture_feature.test
@@ -0,0 +1,28 @@
+fun = &Math.zero?/1
+(&is_function/1).(fun)
+fun = &(&1 + 1)
+&List.flatten(&1, &2)
+
+----------------------------------------------------
+
+[
+ "fun ", ["operator", "="],
+ ["capture", "&Math.zero?/1"],
+ ["punctuation", "("],
+ ["capture", "&is_function/1"],
+ ["punctuation", ")"],
+ ["punctuation", "."],
+ ["punctuation", "("], "fun", ["punctuation", ")"],
+ "\r\nfun ", ["operator", "="],
+ ["capture", "&"],
+ ["punctuation", "("], ["argument", "&1"],
+ ["operator", "+"], ["number", "1"], ["punctuation", ")"],
+ ["capture", "&List.flatten"],
+ ["punctuation", "("], ["argument", "&1"],
+ ["punctuation", ","], ["argument", "&2"],
+ ["punctuation", ")"]
+]
+
+----------------------------------------------------
+
+Checks for function capturing and arguments.
« no previous file with comments | « lib/src/prism/tests/languages/elixir/boolean_feature.test ('k') | lib/src/prism/tests/languages/elixir/comment_feature.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698