fn check_tokenization (mut string_reader: StringReader, expected: Vec<token::Token> ) {
        for expected_tok in &expected {
            assert_eq!(&string_reader.next_token().tok, expected_tok);
        }
    }
// check that the given reader produces the desired stream
// of tokens (stop checking after exhausting the expected vec)
check that the given reader produces the desired stream
of tokens (stop checking after exhausting the expected vec)
check that the given reader produces the desired stream of tokens ( stop checking after exhausting the expected vec )
fn check_tokenization (mut string_reader: StringReader, expected: Vec<token::Token> ) {
        for expected_tok in &expected {
            assert_eq!(&string_reader.next_token().tok, expected_tok);
        }
    }
fn check_tokenization ( mut string_reader : StringReader , expected : Vec < token :: Token > ) { for expected_tok in & expected { assert_eq ! ( string_reader next_token ( ) tok expected_tok ) ; } }
check that the given reader produces the desired stream
of tokens (stop checking after exhausting the expected vec)
check that the given reader produces the desired stream of tokens ( stop checking after exhausting the expected vec )
string_reader
StringReader
expected
Vec<token::Token>