[seed] Rename readline_bind test to readline-bind, to keep convention
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Rename readline_bind test to readline-bind, to keep convention
- Date: Thu, 23 Apr 2009 17:41:25 -0400 (EDT)
commit 2ebc9e50f8549062f9a1895fa26997463f6078af
Author: Robert Carr <racarr svn gnome org>
Date: Thu Apr 23 17:40:35 2009 -0400
Rename readline_bind test to readline-bind, to keep convention
---
tests/javascript/readline-bind.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/javascript/readline-bind.js b/tests/javascript/readline-bind.js
new file mode 100755
index 0000000..8b47b5d
--- /dev/null
+++ b/tests/javascript/readline-bind.js
@@ -0,0 +1,9 @@
+#!/usr/bin/env seed
+// Returns: 0
+// STDIN:a 2+2
+// STDOUT:Got here!\n4.000000
+// STDERR:
+
+readline = imports.readline;
+readline.bind("a", function () { Seed.print("Got here!"); });
+Seed.print(eval(readline.readline("")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]