Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement no_std support #1

Merged
merged 9 commits into from
Feb 2, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make sure tests also use no_std
  • Loading branch information
vks committed Feb 2, 2018
commit ac8bc7605e45c8ba79ac0a38e857a0aa08545fd1
2 changes: 2 additions & 0 deletions tests/clenshaw_curtis.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![no_std]

extern crate quadrature;

use quadrature::clenshaw_curtis::integrate;
Expand Down
2 changes: 2 additions & 0 deletions tests/double_exponential.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![no_std]

extern crate quadrature;

use quadrature::double_exponential::integrate;
Expand Down
6 changes: 3 additions & 3 deletions tests/test_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ macro_rules! unit_test {
#[test]
fn $name() {
let o = integrate($inta, $lim.start, $lim.end, $eps);
println!("\n{:#?}", o);
//println!("\n{:#?}", o);
assert!(o.num_function_evaluations == $max,
"num_function_evaluations is not maxed out. evaluations: {:#?}, max: {:#?}",
o.num_function_evaluations,
Expand All @@ -20,7 +20,7 @@ macro_rules! unit_test {
#[test]
fn $name() {
let o = integrate($inta, $lim.start, $lim.end, $eps);
println!("\n{:#?}", o);
//println!("\n{:#?}", o);
assert!(o.error_estimate <= $eps,
"error_estimate larger then asked. estimate: {:#?}, asked: {:#?}",
o.error_estimate,
Expand All @@ -35,7 +35,7 @@ macro_rules! unit_test {
#[test]
fn $name() {
let o = integrate($inta, $lim.start, $lim.end, $eps);
println!("\n{:#?}", o);
//println!("\n{:#?}", o);
assert!(o.error_estimate <= $eps,
"error_estimate larger then asked. estimate: {:#?}, asked: {:#?}",
o.error_estimate,
Expand Down