commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r790064 - in /commons/sandbox/runtime/trunk/src: main/native/test/testcase.c test/org/apache/commons/runtime/TestPrivate.java
Date Wed, 01 Jul 2009 08:27:38 GMT
Author: mturk
Date: Wed Jul  1 08:27:37 2009
New Revision: 790064

URL: http://svn.apache.org/viewvc?rev=790064&view=rev
Log:
Actually add the strtok test case

Modified:
    commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java

Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=790064&r1=790063&r2=790064&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Wed Jul  1 08:27:37 2009
@@ -355,6 +355,7 @@
     char *token;
     char *state;
 
+    sprintf(buf, "    1 22   3333  4");
     token = ACR_strtok_c(buf, ' ', &state);
     if (token) {
         n++;

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java?rev=790064&r1=790063&r2=790064&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestPrivate.java Wed
Jul  1 08:27:37 2009
@@ -82,6 +82,7 @@
     private static native void   test030(int d);
     private static native String[] test031(String s);
     private static native String[] test032(String s);
+    private static native int      test033(int d);
 
 
     private static native String test100(String s);
@@ -619,6 +620,12 @@
         assertEquals("Length", 3, a.length);
     }
 
+    public void testTokens()
+        throws Throwable
+    {
+        assertEquals("Tokens", 4, test033(0));
+    }
+
     public void testModuleSSL()
         throws Throwable
     {



Mime
View raw message