Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc-cloned / node_modules / @protobufjs / codegen / tests / index.js
diff --git a/legacy-libs/grpc-cloned/node_modules/@protobufjs/codegen/tests/index.js b/legacy-libs/grpc-cloned/node_modules/@protobufjs/codegen/tests/index.js
new file mode 100644 (file)
index 0000000..f3a3db1
--- /dev/null
@@ -0,0 +1,13 @@
+var codegen = require("..");\r
+\r
+// new require("benchmark").Suite().add("add", function() {\r
+\r
+var add = codegen(["a", "b"], "add")\r
+  ("// awesome comment")\r
+  ("return a + b - c + %d", 1)\r
+  ({ c: 1 });\r
+\r
+if (add(1, 2) !== 3)\r
+  throw Error("failed");\r
+\r
+// }).on("cycle", function(event) { process.stdout.write(String(event.target) + "\n"); }).run();\r