![JAR search and dependency download from the Maven repository](/logo.png)
jvmTest.org.luaj.vm2.compiler.RegressionTests.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of luak Show documentation
Show all versions of luak Show documentation
Port of luaj to Kotlin Common
package org.luaj.vm2.compiler
import kotlin.test.Test
/**
* Framework to add regression tests as problem areas are found.
*
* To add a new regression test:
* 1) run "unpack.sh" in the project root
* 2) add a new "lua" file in the "regressions" subdirectory
* 3) run "repack.sh" in the project root
* 4) add a line to the source file naming the new test
*
* After adding a test, check in the zip file
* rather than the individual regression test files.
*
* @author jrosebor
*/
class RegressionTests : AbstractUnitTests("test/lua", "luaj3.0-tests.zip", "regressions") {
@Test
fun testModulo() {
doTest("modulo.lua")
}
@Test
fun testConstruct() {
doTest("construct.lua")
}
@Test
fun testBigAttrs() {
doTest("bigattr.lua")
}
@Test
fun testControlChars() {
doTest("controlchars.lua")
}
@Test
fun testComparators() {
doTest("comparators.lua")
}
@Test
fun testMathRandomseed() {
doTest("mathrandomseed.lua")
}
@Test
fun testVarargs() {
doTest("varargs.lua")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy