xbasic 0.3.1

A library that allows adding a scripting language onto your project with ease. This lets your users write their own arbitrary logic.
Documentation
mod common;

#[test]
fn equal() {
	common::test_program("print 3 = 3\n", "true\n");
	common::test_program("print 2 = 3\n", "false\n");
	common::test_program("print 3i = 3f\n", "true\n");
	common::test_program("print \"hello world\" = \"hello world\"\n", "true\n");
	common::test_program("print \"hello world\" = \"hello word\"\n", "false\n");
}

#[test]
fn less() {
	common::test_program("print 3 < 3\n", "false\n");
	common::test_program("print 3 < 4\n", "true\n");
	common::test_program("print 4 < 3\n", "false\n");
}

#[test]
fn less_eq() {
	common::test_program("print 3 <= 3\n", "true\n");
	common::test_program("print 3 <= 4\n", "true\n");
	common::test_program("print 4 <= 3\n", "false\n");
}

#[test]
fn greater() {
	common::test_program("print 3 > 3\n", "false\n");
	common::test_program("print 3 > 4\n", "false\n");
	common::test_program("print 4 > 3\n", "true\n");
}

#[test]
fn greater_eq() {
	common::test_program("print 3 >= 3\n", "true\n");
	common::test_program("print 3 > 4\n", "false\n");
	common::test_program("print 4 > 3\n", "true\n");
}