From 0fe84a92fbd8cded71cce8c31b510296a1165fb6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Jul 2005 07:43:45 +0000 Subject: r8196: - added testing of the EchoData interface in the echo test script - add asserts on all calls for correct results (This used to be commit 0b67754c281f387148b64ba00742437330dc68f7) --- testprogs/ejs/echo.js | 86 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 75 insertions(+), 11 deletions(-) (limited to 'testprogs') diff --git a/testprogs/ejs/echo.js b/testprogs/ejs/echo.js index 1579afa94f..992c6be5dd 100644 --- a/testprogs/ejs/echo.js +++ b/testprogs/ejs/echo.js @@ -5,26 +5,79 @@ function irpcObj() { var o = new Object(); - o.in = new Object(); + o.input = new Object(); return o; } -function test_AddOne(binding) +/* + generate a ramp as an integer array + */ +function ramp_array(N) { - var status; - var conn = new Object(); - var io = irpcObj(); + var a = new Array(N); + for (i=0;i