This commit is contained in:
Arne Keller 2021-03-20 22:51:19 +01:00
parent 9725ef0d85
commit 7109f6f6d6
4 changed files with 17 additions and 3 deletions

13
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,13 @@
variables:
CARGO_HOME: /tmp/cargo
CARGO_TARGET_DIR: /tmp/cargo/target
build:
script:
- nix-shell -p rustc cargo --run "sh -c '
rustc -vV &&
cargo -vV &&
cargo build'"
test:
script:
- nix-shell -p rustc cargo --run 'cargo test'

1
Cargo.lock generated
View File

@ -111,6 +111,7 @@ dependencies = [
[[package]] [[package]]
name = "svg_fmt" name = "svg_fmt"
version = "0.4.0" version = "0.4.0"
source = "git+https://github.com/FliegendeWurst/rust_debug?rev=c664b5d24dbcaf6e6fdd7c329dde231c5b05377e#c664b5d24dbcaf6e6fdd7c329dde231c5b05377e"
[[package]] [[package]]
name = "syn" name = "syn"

View File

@ -14,6 +14,6 @@ console_error_panic_hook = "0.1.6"
console_log = "0.2.0" console_log = "0.2.0"
itertools = "0.10.0" itertools = "0.10.0"
log = "0.4.14" log = "0.4.14"
svg_fmt = { path = "../rust_debug/svg_fmt" } svg_fmt = { git = "https://github.com/FliegendeWurst/rust_debug", rev = "c664b5d24dbcaf6e6fdd7c329dde231c5b05377e" }
wasm-bindgen = "0.2.71" wasm-bindgen = "0.2.71"
web-sys = { version = "0.3.48", features = ["Window", "Document", "Location", "HtmlCollection", "HtmlElement", "HtmlSelectElement", "CssStyleDeclaration", "HtmlTextAreaElement", "HtmlInputElement"] } web-sys = { version = "0.3.48", features = ["Window", "Document", "Location", "HtmlCollection", "HtmlElement", "HtmlSelectElement", "CssStyleDeclaration", "HtmlTextAreaElement", "HtmlInputElement"] }

View File

@ -365,7 +365,7 @@ fn test_3var() {
]); ]);
let prime = find_core(&fun, &mut [A, B, C], Zero, &groups).0; let prime = find_core(&fun, &mut [A, B, C], Zero, &groups).0;
assert_eq!(prime, vec![ assert_eq!(prime, vec![
vec![(A, Zero), (B, Zero)], &[(A, Zero), (B, Zero)],
vec![(A, One), (C, Zero)], &[(A, One), (C, Zero)],
]); ]);
} }