    1   package org.codehaus.groovy.syntax.lexer;
    2
    3   import groovy.util.GroovyTestCase;
    4
    5   public class StringCharStreamTest
    6       extends GroovyTestCase
    7   {
    8       public void testNothing()
    9       {
    10      }
    11
    12  /*
    13      public void testNextChar_EmptyString()
    14          throws Exception
    15      {
    16          StringCharStream charStream = new StringCharStream( "" );
    17
    18          assertEquals( CharStream.EOS,
    19                        charStream.consume() );
    20          assertEquals( CharStream.EOS,
    21                        charStream.consume() );
    22      }
    23
    24      public void testconsume_NonEmptyString()
    25          throws Exception
    26      {
    27          StringCharStream charStream = new StringCharStream( "cheese" );
    28
    29          assertEquals( 'c',
    30                        charStream.consume() );
    31          assertEquals( 'h',
    32                        charStream.consume() );
    33          assertEquals( 'e',
    34                        charStream.consume() );
    35          assertEquals( 'e',
    36                        charStream.consume() );
    37          assertEquals( 's',
    38                        charStream.consume() );
    39          assertEquals( 'e',
    40                        charStream.consume() );
    41          assertEquals( CharStream.EOS,
    42                        charStream.consume() );
    43          assertEquals( CharStream.EOS,
    44                        charStream.consume() );
    45      }
    46  */
    47  }