Pythagorean quadruples: Difference between revisions

m
no edit summary
m (→‎{{header|Rust}}: correction)
mNo edit summary
Line 1,820:
mod tests {
use super::*;
static ANSWERHAPPY: &str = "[1, 2, 4, 5, 8, 10, 16, 20, 32, 40, 64, 80, 128, 160, 256, 320, 512, 640, 1024, 1280, 2048]";
#[test]
fn test_a094958_iter() {
assert!(format!("{:?}", a094958_iter()) == ANSWERHAPPY);
}
#[test]
fn test_a094958_loop() {
assert!(format!("{:?}", a094958_loop()) == ANSWERHAPPY);
}
#[test]
fn test_a094958_filter() {
assert!(format!("{:?}", a094958_filter()) == ANSWERHAPPY);
}
}
Anonymous user