All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmTest.org.luaj.vm2.compiler.RegressionTests.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha-2
Show newest version
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