()
| 704 | |
| 705 | #[test] |
| 706 | fn non_macro_seq_assign() { |
| 707 | set_device(0); |
| 708 | // ANCHOR: non_macro_seq_assign |
| 709 | let mut a = constant(2.0 as f32, dim4!(5, 3)); |
| 710 | //print(&a); |
| 711 | // 2.0 2.0 2.0 |
| 712 | // 2.0 2.0 2.0 |
| 713 | // 2.0 2.0 2.0 |
| 714 | // 2.0 2.0 2.0 |
| 715 | // 2.0 2.0 2.0 |
| 716 | |
| 717 | let b = constant(1.0 as f32, dim4!(3, 3)); |
| 718 | let seqs = [seq!(1:3:1), seq!()]; |
| 719 | assign_seq(&mut a, &seqs, &b); |
| 720 | //print(&a); |
| 721 | // 2.0 2.0 2.0 |
| 722 | // 1.0 1.0 1.0 |
| 723 | // 1.0 1.0 1.0 |
| 724 | // 1.0 1.0 1.0 |
| 725 | // 2.0 2.0 2.0 |
| 726 | // ANCHOR_END: non_macro_seq_assign |
| 727 | } |
| 728 | |
| 729 | #[test] |
| 730 | fn non_macro_seq_array_index() { |
nothing calls this directly
no test coverage detected