Skip to content

Commit bcd6dbb

Browse files
committed
geom: fix test of unsupported resolution
1 parent d8236a9 commit bcd6dbb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/api/geom/solvent.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,21 @@ fn heterogeneous_resolution() {
113113
fn unsupported_resolution() {
114114
let set = [0x89283082813ffff, 0x8828308299fffff]
115115
.into_iter()
116-
.map(|bits| CellIndex::try_from(bits).expect("cell index"));
116+
.map(|bits| CellIndex::try_from(bits).expect("cell index"))
117+
.collect::<Vec<_>>();
117118

118119
let result = SolventBuilder::new()
119120
.enable_heterogeneous_support(Resolution::Eight)
120121
.build()
121-
.dissolve(set);
122-
dbg!(&result);
122+
.dissolve(set.iter().copied());
123+
assert!(result.is_err(), "by dup-check");
123124

124-
assert!(result.is_err());
125+
let result = SolventBuilder::default()
126+
.enable_heterogeneous_support(Resolution::Eight)
127+
.disable_duplicate_detection()
128+
.build()
129+
.dissolve(set);
130+
assert!(result.is_err(), "even with dup-check disabled");
125131
}
126132

127133
#[test]

0 commit comments

Comments
 (0)