Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sisshiki1969 committed Nov 25, 2024
1 parent 0df9730 commit a691ab8
Show file tree
Hide file tree
Showing 15 changed files with 657 additions and 678 deletions.
24 changes: 15 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions monoruby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ perf = []
emit-cfg = ["dump-bc"]
no-gems = []
no-startup = ["no-gems"]
test = ["no-gems", "emit-asm", "emit-bc", "jit-log", "jit-debug", "deopt", "gc-log", "gc-stress", "profile", "perf"]
test = ["no-gems", "emit-asm", "emit-bc", "jit-log", "jit-debug", "deopt", "gc-log", "profile", "perf"]

[dependencies]
clap = { version = "4.1.4", features = ["derive"] }
rustyline = "14.0.0"
paste = "1.0.7"
clap = { version = "4.5.21", features = ["derive"] }
rustyline = "15.0.0"
paste = "1.0.15"
monoasm_macro = { git = "https://github.com/sisshiki1969/monoasm.git" }
monoasm = { git = "https://github.com/sisshiki1969/monoasm.git" }
ruruby-parse = { git = "https://github.com/sisshiki1969/ruruby-parse.git" }
monoruby-attr = { path = "../monoruby_attr" }
num = "0.4.0"
num = "0.4.3"
fxhash = "0.2.1"
tempfile = "3.3.0"
dtoa = "1.0"
chrono = "0.4.19"
tempfile = "3.14.0"
dtoa = "1.0.9"
chrono = "0.4.38"
smallvec = { git = "https://github.com/sisshiki1969/rust-smallvec.git", features = [
"const_generics",
] }
Expand Down
3 changes: 1 addition & 2 deletions monoruby/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ mod compiler;
mod executor;
mod globals;
mod id_table;
#[cfg(test)]
mod tests;
pub mod tests;
mod value;

pub(crate) use bytecode::*;
Expand Down
11 changes: 1 addition & 10 deletions monoruby/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
use super::*;
use crate::*;
use ruruby_parse::Parser;
use std::{io::Write, path::PathBuf};
use tempfile::NamedTempFile;

mod case;
mod comparable;
mod literal;
mod method_call;
mod redefine;
mod require;
mod rescue;
mod variables;

pub fn run_test(code: &str) {
let wrapped = format!(
r##"
Expand Down
46 changes: 0 additions & 46 deletions monoruby/src/tests/literal.rs

This file was deleted.

37 changes: 0 additions & 37 deletions monoruby/src/tests/require.rs

This file was deleted.

1 change: 0 additions & 1 deletion monoruby/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,6 @@ impl Value {
}

impl Value {
#[cfg(test)]
pub(crate) fn from_ast(node: &Node, globals: &mut Globals) -> Value {
use ruruby_parse::NReal;

Expand Down
Loading

0 comments on commit a691ab8

Please sign in to comment.