Commit bcd6dbb 1 parent d8236a9 commit bcd6dbb Copy full SHA for bcd6dbb
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,21 @@ fn heterogeneous_resolution() {
113
113
fn unsupported_resolution ( ) {
114
114
let set = [ 0x89283082813ffff , 0x8828308299fffff ]
115
115
. 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 < _ > > ( ) ;
117
118
118
119
let result = SolventBuilder :: new ( )
119
120
. enable_heterogeneous_support ( Resolution :: Eight )
120
121
. build ( )
121
- . dissolve ( set) ;
122
- dbg ! ( & result) ;
122
+ . dissolve ( set. iter ( ) . copied ( ) ) ;
123
+ assert ! ( result. is_err ( ) , "by dup-check" ) ;
123
124
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" ) ;
125
131
}
126
132
127
133
#[ test]
You can’t perform that action at this time.
0 commit comments