Checkpoint

This commit is contained in:
Tibo De Peuter 2025-04-17 17:49:53 +02:00
parent e749f8c6cb
commit 48f94c30df
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
15 changed files with 175 additions and 67 deletions

View file

@ -1,5 +1,6 @@
package lexer
import lexer.errors.LexingError
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import kotlin.test.assertEquals
@ -56,6 +57,6 @@ class ScanPrologTests {
@Test
fun scan_variable_that_starts_with_a_number() {
assertThrows<Error> { Lexer("1X.").scan() }
assertThrows<LexingError> { Lexer("1X.").scan() }
}
}