/[gzz]/gzz/test/gzz/gfx/jni/jnistrconv.test
ViewVC logotype

Diff of /gzz/test/gzz/gfx/jni/jnistrconv.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by humppake, Tue Nov 12 16:53:03 2002 UTC revision 1.8 by humppake, Wed Nov 13 11:21:53 2002 UTC
# Line 3  needGL() Line 3  needGL()
3  from gzz.gfx.gl import GL_Testing  from gzz.gfx.gl import GL_Testing
4  import java.lang.String  import java.lang.String
5    
6  #def testUniScandJavaSubstr_failing():  def testUniScandJavaSubstr_without_stringlength():
7  #    str = java.lang.String("Viime yönä Åke jutteli Äreälle Örisijälle åskardeista.")      str = java.lang.String("Viime yönä Åke jutteli Äreälle Örisijälle åskardeista.")
8  #    failIf(str.substring(5,20) != GL_Testing.loopUnistrConvFailing(str.substring(5,20)),      failIf(str.substring(5,20) != GL_Testing.loopUnistrConvFailing(str.substring(5,20)),
9  #       "Non-null-string bug detected.")          "["+str.substring(5,20)+"] != \
10    ["+GL_Testing.loopUnistrConvFailing(str.substring(5,20))+"]\n\
11    Substring of phrase using scandinavian chraracters corrupted \
12    during unistring conversion. The non-null-string bug propably detected. \
13    If the other conversion tests are ok, this is fixed.")
14    
15  def testUniAZ():  def testUniAZ():
16      str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"      str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
17      failIf(str != GL_Testing.loopUnistrConv(str),      failIf(str != GL_Testing.loopUnistrConv(str),
18          "Characters corrupted during unistring conversion.")          "["+str+"] != \
19    ["+GL_Testing.loopUnistrConv(str)+"]\n\
20    Characters corrupted during unistring conversion.")
21    
22  def testUniAZPhrase():  def testUniAZPhrase():
23      str = "A little green fox jumped over my backyards fence."      str = "A little green fox jumped over my backyards fence."
24      failIf(str != GL_Testing.loopUnistrConv(str),      failIf(str != GL_Testing.loopUnistrConv(str),
25          "Phrase corrupted during unistring conversion.")          "["+str+"] != \
26    ["+GL_Testing.loopUnistrConv(str)+"]\n\
27    Phrase corrupted during unistring conversion.")
28    
29  def testUniScand():  def testUniScand():
30      str = "ÅåÄäÖö"      str = "ÅåÄäÖö"
31      failIf(str != GL_Testing.loopUnistrConv(str),      failIf(str != GL_Testing.loopUnistrConv(str),
32          "Scandinavian characters corrupted during unistring conversion.")          "["+str+"] != \
33    ["+GL_Testing.loopUnistrConv(str)+"]\n\
34    Scandinavian characters corrupted during unistring conversion.")
35    
36  def testUniScandPhrase():  def testUniScandPhrase():
37      str = "Viime yönä Åke jutteli Äreälle Örisijälle åskardeista."      str = "Viime yönä Åke jutteli Äreälle Örisijälle åskardeista."
38      failIf(str != GL_Testing.loopUnistrConv(str),      failIf(str != GL_Testing.loopUnistrConv(str),
39          "Phrase using scandinavian characters correupted during \          "["+str+"] != \
40    ["+GL_Testing.loopUnistrConv(str)+"]\n\
41    Phrase using scandinavian characters correupted during \
42  unistring conversion.")  unistring conversion.")
43    
44  def testUniScandJavaSubstr():  def testUniScandJavaSubstr():
45      str = java.lang.String("Viime yönä Åke jutteli Äreälle Örisijälle åskardeista.")      str = java.lang.String("Viime yönä Åke jutteli Äreälle Örisijälle åskardeista.")
46      failIf(str.substring(5,20) != GL_Testing.loopUnistrConv(str.substring(5,20)),      failIf(str.substring(5,20) != GL_Testing.loopUnistrConv(str.substring(5,20)),
47          "Substring of phrase using scandinavian chraracters corrupted \          "["+str.substring(5,20)+"] != \
48    ["+GL_Testing.loopUnistrConv(str.substring(5,20))+"]\n\
49    Substring of phrase using scandinavian chraracters corrupted \
50  during unistring conversion.")  during unistring conversion.")
51    
52  def testStdAZ():  def testStdAZ():
53      str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"      str = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz"
54      failIf(str != GL_Testing.loopStdstrConv(str),      failIf(str != GL_Testing.loopStdstrConv(str),
55          "Characters corrupted during std::string conversion.")          "["+str+"] != \
56    ["+GL_Testing.loopStdstrConv(str)+"]\n\
57    Characters corrupted during std::string conversion.")
58    
59  def testStdAZPhrase():  def testStdAZPhrase():
60      str = "A little green fox jumped over my backyards fence."      str = "A little green fox jumped over my backyards fence."
61      failIf(str != GL_Testing.loopStdstrConv(str),      failIf(str != GL_Testing.loopStdstrConv(str),
62          "Phrase corrupted during std::string conversion.")          "["+str+"] != \
63    ["+GL_Testing.loopStdstrConv(str)+"]\n\
64    Phrase corrupted during std::string conversion.")
   
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26