[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz gfx/jni/GzzGL-jni.cxx test/gzz/gfx/jni/jnis...
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz gfx/jni/GzzGL-jni.cxx test/gzz/gfx/jni/jnis... |
Date: |
Mon, 07 Oct 2002 05:40:12 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 02/10/07 05:40:12
Modified files:
gfx/jni : GzzGL-jni.cxx
test/gzz/gfx/jni: jnistrconv.test
Added files:
gzz/gfx/gl : GL_Testing.java
Log message:
Some tests for string conversions through JNI.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/jni/GzzGL-jni.cxx.diff?tr1=1.46&tr2=1.47&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/jni/jnistrconv.test.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/gfx/gl/GL_Testing.java?rev=1.1
Patches:
Index: gzz/gfx/jni/GzzGL-jni.cxx
diff -c gzz/gfx/jni/GzzGL-jni.cxx:1.46 gzz/gfx/jni/GzzGL-jni.cxx:1.47
*** gzz/gfx/jni/GzzGL-jni.cxx:1.46 Mon Oct 7 04:45:21 2002
--- gzz/gfx/jni/GzzGL-jni.cxx Mon Oct 7 05:40:12 2002
***************
*** 227,239 ****
int inited = 0;
! JNIEXPORT jstring JNICALL
! Java_test_gzz_gfx_jni_JniStrConv_loopUnistrConv(JNIEnv *env, jobject obj,
jstring jstr) {
return unistr2jstr(env, jstr2unistr(env, jstr));
}
! JNIEXPORT jstring JNICALL
! Java_test_gzz_gfx_jni_JniStrConv_loopStdstrConv(JNIEnv *env, jobject obj,
jstring jstr) {
return stdstr2jstr(env, jstr2stdstr(env, jstr));
}
--- 227,239 ----
int inited = 0;
! JNIEXPORT jstring JNICALL Java_gzz_gfx_gl_GL_1Testing_loopUnistrConv
! (JNIEnv *env, jobject obj, jstring jstr) {
return unistr2jstr(env, jstr2unistr(env, jstr));
}
! JNIEXPORT jstring JNICALL Java_gzz_gfx_gl_GL_1Testing_loopStdstrConv
! (JNIEnv *env, jobject obj, jstring jstr) {
return stdstr2jstr(env, jstr2stdstr(env, jstr));
}
Index: gzz/test/gzz/gfx/jni/jnistrconv.test
diff -c gzz/test/gzz/gfx/jni/jnistrconv.test:1.1
gzz/test/gzz/gfx/jni/jnistrconv.test:1.2
*** gzz/test/gzz/gfx/jni/jnistrconv.test:1.1 Mon Oct 7 04:45:21 2002
--- gzz/test/gzz/gfx/jni/jnistrconv.test Mon Oct 7 05:40:12 2002
***************
*** 1,29 ****
! from test.gzz.gfx.jni import JniStrConv
def strcmp(original, looped):
failIf(original != looped)
def testUniAZ():
str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
! strcmp(str, JniStrConv.loopUnistrConv(str))
def testUniAZPhrase():
str = "A little green fox jumped over my backyards fence."
! strcmp(str, JniStrConv.loopUnistrConv(str))
def testUniScand():
str = "ÅåÄäÖö"
! strcmp(str, JniStrConv.loopUnistrConv(str))
def testUniScandPhrase():
str = "Viime yönä Åke jutteli Äreälle Örisijälle åskardeista."
! strcmp(str, JniStrConv.loopUnistrConv(str))
def testStdAZ():
str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
! strcmp(str, JniStrConv.loopStdstrConv(str))
def testStdAZPhrase():
str = "A little green fox jumped over my backyards fence."
! strcmp(str, JniStrConv.loopStdstrConv(str))
--- 1,29 ----
! from gzz.gfx.gl import GL_Testing
def strcmp(original, looped):
failIf(original != looped)
def testUniAZ():
str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
! strcmp(str, GL_Testing.loopUnistrConv(str))
def testUniAZPhrase():
str = "A little green fox jumped over my backyards fence."
! strcmp(str, GL_Testing.loopUnistrConv(str))
def testUniScand():
str = "ÅåÄäÖö"
! strcmp(str, GL_Testing.loopUnistrConv(str))
def testUniScandPhrase():
str = "Viime yönä Åke jutteli Äreälle Örisijälle åskardeista."
! strcmp(str, GL_Testing.loopUnistrConv(str))
def testStdAZ():
str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
! strcmp(str, GL_Testing.loopStdstrConv(str))
def testStdAZPhrase():
str = "A little green fox jumped over my backyards fence."
! strcmp(str, GL_Testing.loopStdstrConv(str))