seed r653 - trunk/tests
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r653 - trunk/tests
- Date: Mon, 5 Jan 2009 07:14:10 +0000 (UTC)
Author: hortont
Date: Mon Jan 5 07:14:10 2009
New Revision: 653
URL: http://svn.gnome.org/viewvc/seed?rev=653&view=rev
Log:
Added test for readline_bind.
Added:
trunk/tests/readline_bind.js (contents, props changed)
Added: trunk/tests/readline_bind.js
==============================================================================
--- (empty file)
+++ trunk/tests/readline_bind.js Mon Jan 5 07:14:10 2009
@@ -0,0 +1,9 @@
+#!/usr/bin/env seed
+// Returns: 0
+// STDIN:a 2+2
+// STDOUT:Got here!\n4.000000
+// STDERR:
+
+Seed.import_namespace("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]