Style fixes in generated code
This commit is contained in:
parent
af29abdb1e
commit
b4847d2a2c
8
build.rs
8
build.rs
|
@ -7,11 +7,11 @@ fn main() {
|
||||||
.write_all(
|
.write_all(
|
||||||
b"// This file is generated by build.rs
|
b"// This file is generated by build.rs
|
||||||
|
|
||||||
use std::path::Path;
|
|
||||||
use std::fs::File;
|
|
||||||
use std::io::Read;
|
|
||||||
use super::common::TestCase;
|
use super::common::TestCase;
|
||||||
use super::get_library;
|
use super::get_library;
|
||||||
|
use std::fs::File;
|
||||||
|
use std::io::Read;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
fn integration_tests(input: &Path) {
|
fn integration_tests(input: &Path) {
|
||||||
let mut str: String = \"\".to_string();
|
let mut str: String = \"\".to_string();
|
||||||
|
@ -21,7 +21,6 @@ fn integration_tests(input: &Path) {
|
||||||
println!(\"\tRunning integration test {}\", test_case.name);
|
println!(\"\tRunning integration test {}\", test_case.name);
|
||||||
test_case.run_test(get_library());
|
test_case.run_test(get_library());
|
||||||
}
|
}
|
||||||
|
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -41,7 +40,6 @@ fn integration_tests(input: &Path) {
|
||||||
fn {}() {{
|
fn {}() {{
|
||||||
integration_tests(Path::new(\"{}\"));
|
integration_tests(Path::new(\"{}\"));
|
||||||
}}
|
}}
|
||||||
|
|
||||||
",
|
",
|
||||||
file_name,
|
file_name,
|
||||||
path.to_str().unwrap(),
|
path.to_str().unwrap(),
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// This file is generated by build.rs
|
// This file is generated by build.rs
|
||||||
|
|
||||||
use std::path::Path;
|
|
||||||
use std::fs::File;
|
|
||||||
use std::io::Read;
|
|
||||||
use super::common::TestCase;
|
use super::common::TestCase;
|
||||||
use super::get_library;
|
use super::get_library;
|
||||||
|
use std::fs::File;
|
||||||
|
use std::io::Read;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
fn integration_tests(input: &Path) {
|
fn integration_tests(input: &Path) {
|
||||||
let mut str: String = "".to_string();
|
let mut str: String = "".to_string();
|
||||||
|
@ -15,10 +15,7 @@ fn integration_tests(input: &Path) {
|
||||||
test_case.run_test(get_library());
|
test_case.run_test(get_library());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn basic_single_turn() {
|
fn basic_single_turn() {
|
||||||
integration_tests(Path::new("tests/test_cases/basic_single_turn.yaml"));
|
integration_tests(Path::new("tests/test_cases/basic_single_turn.yaml"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue