raku_test.go 323 B

1234567891011121314151617181920212223
  1. // raku_test.go
  2. package raku
  3. import (
  4. "strings"
  5. "testing"
  6. )
  7. func TestLexing(test *testing.T) {
  8. const input = `
  9. say "hello world"
  10. to open a door do
  11. set door's open to true
  12. done
  13. `
  14. lexer := OpenLexer(strings.NewReader(input))
  15. test.Logf("Lexer buffer: %v", lexer.buffer)
  16. lexer.TryLexing()
  17. test.Log("Hi test!")
  18. }