Skip to content

Commit 77921ee

Browse files
committed
Merge pull request #10 from kmcallister/otest
Test fixes
2 parents faca82a + 83c0266 commit 77921ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ libcssparser.dummy: cssparser.rc $(RUST_SRC)
1818
touch $@
1919

2020
cssparser-test: cssparser.rc $(RUST_SRC)
21-
$(RUSTC) $(RUSTFLAGS) $< --out-dir . --test
21+
$(RUSTC) $(RUSTFLAGS) $< -o $@ --test
2222

2323
.PHONY: check
2424
check: cssparser-test

tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn one_rule() {
132132
fn run_color_tests(json_data: &str, to_json: &fn(result: Option<Color>) -> json::Json) {
133133
do run_json_tests(json_data) |input| {
134134
match parse_one_component_value(tokenize(input)) {
135-
Ok(component_value) => to_json(parse_color(&component_value)),
135+
Ok(component_value) => to_json(Color::parse(&component_value)),
136136
Err(_reason) => json::Null,
137137
}
138138
}

0 commit comments

Comments
 (0)