updated NTOBV and test
Some checks failed
per-push tests / build (pull_request) Successful in 42s
per-push tests / build (pull_request_target) Successful in 48s
per-push tests / test-frontend (pull_request) Successful in 47s
per-push tests / test-utility (pull_request) Successful in 55s
per-push tests / test-backend (pull_request) Failing after 55s
per-push tests / test-frontend (pull_request_target) Successful in 42s
per-push tests / test-utility (pull_request_target) Successful in 45s
per-push tests / test-backend (pull_request_target) Successful in 46s
per-push tests / timed-decomposer-parse (pull_request) Successful in 45s
per-push tests / timed-decomposer-parse (pull_request_target) Successful in 53s
Some checks failed
per-push tests / build (pull_request) Successful in 42s
per-push tests / build (pull_request_target) Successful in 48s
per-push tests / test-frontend (pull_request) Successful in 47s
per-push tests / test-utility (pull_request) Successful in 55s
per-push tests / test-backend (pull_request) Failing after 55s
per-push tests / test-frontend (pull_request_target) Successful in 42s
per-push tests / test-utility (pull_request_target) Successful in 45s
per-push tests / test-backend (pull_request_target) Successful in 46s
per-push tests / timed-decomposer-parse (pull_request) Successful in 45s
per-push tests / timed-decomposer-parse (pull_request_target) Successful in 53s
This commit is contained in:
parent
32d4c8c43e
commit
c25a57a92f
1 changed files with 4 additions and 3 deletions
|
|
@ -398,7 +398,7 @@ impl VM {
|
||||||
n.0 > u8::MAX.into() || n.0 < 0.0 {
|
n.0 > u8::MAX.into() || n.0 < 0.0 {
|
||||||
e!("input to NTOBV cannot cleanly convert");
|
e!("input to NTOBV cannot cleanly convert");
|
||||||
}
|
}
|
||||||
Datum::ByteVector(n.0.to_bits().to_be_bytes().to_vec()).into()
|
Datum::ByteVector(n.0.to_bits().to_ne_bytes().to_vec()).into()
|
||||||
} else {
|
} else {
|
||||||
e!("illegal argument to NTOBV instruction");
|
e!("illegal argument to NTOBV instruction");
|
||||||
}
|
}
|
||||||
|
|
@ -1103,6 +1103,7 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn isa_conversions() {
|
fn isa_conversions() {
|
||||||
let mut vm = VM::from(Program(vec![], vec![
|
let mut vm = VM::from(Program(vec![], vec![
|
||||||
|
|
||||||
// load from stack into expr
|
// load from stack into expr
|
||||||
Instruction(i::DUPL, vec![Operand(Address::Stack, 0),
|
Instruction(i::DUPL, vec![Operand(Address::Stack, 0),
|
||||||
Operand(Address::Expr, 0)]),
|
Operand(Address::Expr, 0)]),
|
||||||
|
|
@ -1112,7 +1113,6 @@ mod tests {
|
||||||
Instruction(i::PUSH, vec![Operand(Address::Expr, 0)]),
|
Instruction(i::PUSH, vec![Operand(Address::Expr, 0)]),
|
||||||
|
|
||||||
// reset expr to original char
|
// reset expr to original char
|
||||||
|
|
||||||
Instruction(i::DUPL, vec![Operand(Address::Stack, 1),
|
Instruction(i::DUPL, vec![Operand(Address::Stack, 1),
|
||||||
Operand(Address::Expr, 0)]),
|
Operand(Address::Expr, 0)]),
|
||||||
|
|
||||||
|
|
@ -1150,7 +1150,8 @@ mod tests {
|
||||||
(2, Datum::Number(Number::Flt(Float(97.0))).into()),
|
(2, Datum::Number(Number::Flt(Float(97.0))).into()),
|
||||||
(3, Datum::Number(Number::Fra(Fraction(97, 1))).into()),
|
(3, Datum::Number(Number::Fra(Fraction(97, 1))).into()),
|
||||||
(4, Datum::String(vec![b'a']).into()),
|
(4, Datum::String(vec![b'a']).into()),
|
||||||
(5, Datum::Char(b'a').into()),
|
(5, Datum::Number(Number::Fra(Fraction(97, 1))).into()),
|
||||||
|
(6, Datum::Char(b'a').into()),
|
||||||
],
|
],
|
||||||
syms: vec![],
|
syms: vec![],
|
||||||
errr: None,
|
errr: None,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue