Skip to main content

module lang::flybytes::tests::LoopTests

rascal-0.40.17
flybytes-0.2.8

Usage

import lang::flybytes::tests::LoopTests;

Source code

http://github.com/usethesource/flybytes/blob/main/src/lang/flybytes/tests/LoopTests.rsc

Dependencies

import lang::flybytes::Syntax;
import lang::flybytes::Compiler;

function forLoopClass

Class forLoopClass()

function testForClass

bool testForClass(Class c)

function NestedFor

Class NestedFor()

function forLoopBreakClass

Class forLoopBreakClass()

function forLoopContinueClass

Class forLoopContinueClass()

function forLoopBreakNestedClass

Class forLoopBreakNestedClass()

function whileClass

Class whileClass()

function doWhileClass

Class doWhileClass()

Tests

test testNormalFor

test bool testNormalFor() = testForClass(forLoopClass());

test testNestedFor

test bool testNestedFor() = testForClass(NestedFor());

test testBreakFor

test bool testBreakFor() = testForClass(forLoopBreakClass());

test testForContinue

test bool testForContinue() = testForClass(forLoopContinueClass());

test testBreakNested

test bool testBreakNested() = testForClass(forLoopBreakNestedClass());

test testNormalDoWhile

test bool testNormalDoWhile() = testForClass(whileClass());

test testNormalDoWhile2

test bool testNormalDoWhile2() = testForClass(doWhileClass());