Skip to content

Commit 2b84fc5

Browse files
committed
okay, we have other things that we do need to test
1 parent 1f9b9f3 commit 2b84fc5

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

tests/test_table_traits.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,23 @@ fn test_traits_with_table_collection() {
156156
#[test]
157157
fn test_traits_with_table_collection_holder() {
158158
let tables = make_tables();
159-
let tref = &tables;
159+
let tref: &tskit::TableCollection = &tables;
160160
let tables_output = IteratorOutput::new_from_tables(tref);
161-
let boxed = Box::new(tref);
162-
let dynamic_output = IteratorOutput::new_from_dyn(&boxed);
163-
assert_eq!(tables_output, dynamic_output);
161+
//let boxed = Box::new(tref);
162+
//let dynamic_output = IteratorOutput::new_from_dyn(&boxed);
163+
//assert_eq!(tables_output, dynamic_output);
164+
fn foo(_: impl tskit::TableIteration) {
165+
todo!("this compiles");
166+
167+
}
168+
fn foo2<T>(_: T) where T: tskit::TableIteration {
169+
todo!("this compiles");
170+
}
171+
foo(tref);
172+
foo2(tref);
173+
let h = TablesHolder{tables:tref};
174+
foo(h.tables);
175+
foo2(h.tables);
164176
}
165177

166178
#[test]

0 commit comments

Comments
 (0)