Lines Matching refs:assert_eq

43         assert_eq!(input, output[0]);  in primitives()
103 assert_eq!(input, output[0]); in strings()
124 assert_eq!(input, output[0]); in lists()
161 assert_eq!(output_map.len(), 3); in maps()
207 Val::Map(output_map) => assert_eq!(output_map.len(), 0), in maps()
242 assert_eq!(output_map.len(), 2); in maps_complex_types()
249 assert_eq!(list.len(), 3); in maps_complex_types()
250 assert_eq!(list[0], Val::U32(1)); in maps_complex_types()
251 assert_eq!(list[1], Val::U32(2)); in maps_complex_types()
252 assert_eq!(list[2], Val::U32(3)); in maps_complex_types()
262 assert_eq!(list.len(), 2); in maps_complex_types()
263 assert_eq!(list[0], Val::U32(4)); in maps_complex_types()
264 assert_eq!(list[1], Val::U32(5)); in maps_complex_types()
288 assert_eq!(Val::Map(map1.clone()), Val::Map(map2)); in maps_equality()
307 assert_eq!(Val::Map(empty1), Val::Map(empty2)); in maps_equality()
336 assert_eq!(output_map.len(), 3); in maps_duplicate_keys()
359 assert_eq!(input, output[0]); in maps_all_primitive_types()
373 assert_eq!(input, output[0]); in maps_all_primitive_types()
398 assert_eq!(input, output[0]); in maps_alignment()
410 assert_eq!(input, output[0]); in maps_alignment()
422 assert_eq!(input, output[0]); in maps_alignment()
437 assert_eq!(input, output[0]); in maps_alignment()
463 assert_eq!(output_map.len(), 100); in maps_large()
520 assert_eq!(input, output[0]); in records()
611 assert_eq!(input, output[0]); in variants()
637 assert_eq!(input, output[0]); in variants()
708 assert_eq!(input, output[0]); in variants()
731 assert_eq!(input, output[0]); in flags()
858 assert_eq!(input, output[0]); in everything()
994 assert_eq!(imports.len(), 3); in introspection()
996 assert_eq!(name, "res"); in introspection()
1000 assert_eq!(res_ty, ResourceType::host::<MyType>()); in introspection()
1003 assert_eq!(name, "ai"); in introspection()
1007 assert_eq!(ai_ty.exports(linker.engine()).len(), 0); in introspection()
1010 assert_eq!(name, "bi"); in introspection()
1015 assert_eq!(bi_exports.len(), 1); in introspection()
1017 assert_eq!(name, "m"); in introspection()
1021 assert_eq!(bi_m_ty.imports(linker.engine()).len(), 0); in introspection()
1022 assert_eq!(bi_m_ty.exports(linker.engine()).len(), 0); in introspection()
1025 assert_eq!(exports.len(), 11); in introspection()
1028 assert_eq!(name, "run"); in introspection()
1032 assert_eq!(run_ty.params().len(), 0); in introspection()
1035 assert_eq!(run_results.len(), 1); in introspection()
1036 assert_eq!(run_results.next().unwrap(), types::Type::U32); in introspection()
1039 assert_eq!(name, "i"); in introspection()
1044 assert_eq!(i_ty_exports.len(), 1); in introspection()
1046 assert_eq!(name, "i"); in introspection()
1051 assert_eq!(i_i_ty_exports.len(), 1); in introspection()
1053 assert_eq!(name, "m"); in introspection()
1057 assert_eq!(i_i_m_ty.imports(linker.engine()).len(), 0); in introspection()
1058 assert_eq!(i_i_m_ty.exports(linker.engine()).len(), 0); in introspection()
1061 assert_eq!(name, "r"); in introspection()
1065 assert_eq!(r_ty.exports(linker.engine()).len(), 0); in introspection()
1068 assert_eq!(name, "r2"); in introspection()
1073 assert_eq!(r2_exports.len(), 1); in introspection()
1075 assert_eq!(name, "m"); in introspection()
1079 assert_eq!(r2_m_ty.imports(linker.engine()).len(), 0); in introspection()
1080 assert_eq!(r2_m_ty.exports(linker.engine()).len(), 0); in introspection()
1083 assert_eq!(name, "b"); in introspection()
1087 assert_eq!(b_ty.unwrap_enum().names().collect::<Vec<_>>(), ["a", "b"]); in introspection()
1090 assert_eq!(name, "c"); in introspection()
1097 assert_eq!(name, "D"); in introspection()
1098 assert_eq!(ty, types::Type::Bool); in introspection()
1100 assert_eq!(name, "E"); in introspection()
1101 assert_eq!(ty, types::Type::U32); in introspection()
1105 assert_eq!(name, "f"); in introspection()
1109 assert_eq!( in introspection()
1115 assert_eq!(name, "m"); in introspection()
1122 assert_eq!(name, "N"); in introspection()
1123 assert_eq!(ty, types::Type::Bool); in introspection()
1125 assert_eq!(name, "O"); in introspection()
1126 assert_eq!(ty, types::Type::U32); in introspection()
1130 assert_eq!(name, "j"); in introspection()
1137 assert_eq!(name, "K"); in introspection()
1138 assert_eq!(ty, Some(types::Type::U32)); in introspection()
1140 assert_eq!(name, "L"); in introspection()
1141 assert_eq!(ty, Some(types::Type::Float64)); in introspection()
1143 assert_eq!(name, "M"); in introspection()
1144 assert_eq!(ty, Some(m_ty)); in introspection()
1148 assert_eq!(name, "foo"); in introspection()
1154 assert_eq!(fields.len(), 17); in introspection()
1156 assert_eq!(name, "A"); in introspection()
1157 assert_eq!(ty, types::Type::U32); in introspection()
1159 assert_eq!(name, "B"); in introspection()
1160 assert_eq!(ty, b_ty); in introspection()
1162 assert_eq!(name, "C"); in introspection()
1163 assert_eq!(ty, c_ty); in introspection()
1165 assert_eq!(name, "F"); in introspection()
1167 assert_eq!(ty.ty(), f_ty); in introspection()
1169 assert_eq!(name, "J"); in introspection()
1170 assert_eq!(ty, j_ty); in introspection()
1172 assert_eq!(name, "P"); in introspection()
1173 assert_eq!(ty, types::Type::S8); in introspection()
1175 assert_eq!(name, "Q"); in introspection()
1176 assert_eq!(ty, types::Type::S16); in introspection()
1178 assert_eq!(name, "R"); in introspection()
1179 assert_eq!(ty, types::Type::S32); in introspection()
1181 assert_eq!(name, "S"); in introspection()
1182 assert_eq!(ty, types::Type::S64); in introspection()
1184 assert_eq!(name, "T"); in introspection()
1185 assert_eq!(ty, types::Type::Float32); in introspection()
1187 assert_eq!(name, "U"); in introspection()
1188 assert_eq!(ty, types::Type::Float64); in introspection()
1190 assert_eq!(name, "V"); in introspection()
1191 assert_eq!(ty, types::Type::String); in introspection()
1193 assert_eq!(name, "W"); in introspection()
1194 assert_eq!(ty, types::Type::Char); in introspection()
1196 assert_eq!(name, "Y"); in introspection()
1197 assert_eq!( in introspection()
1202 assert_eq!(name, "AA"); in introspection()
1203 assert_eq!(ty.unwrap_option().ty(), types::Type::U32); in introspection()
1205 assert_eq!(name, "BB"); in introspection()
1207 assert_eq!(ty.ok(), Some(types::Type::String)); in introspection()
1208 assert_eq!(ty.err(), Some(types::Type::String)); in introspection()
1210 assert_eq!(name, "CC"); in introspection()
1211 assert_eq!(*ty.unwrap_own(), res_ty); in introspection()
1215 assert_eq!(name, "fn"); in introspection()
1220 assert_eq!(params.len(), 1); in introspection()
1222 assert_eq!(name, "x"); in introspection()
1223 assert_eq!(param.unwrap_option().ty(), foo_ty); in introspection()
1226 assert_eq!(results.len(), 1); in introspection()
1227 assert_eq!( in introspection()
1267 assert_eq!(output[0], Val::Flags(vec![])); in flags_beyond_end()
1271 assert_eq!(output[0], Val::Flags(vec!["a".to_string()])); in flags_beyond_end()
1275 assert_eq!(output[0], Val::Flags(vec!["b".to_string()])); in flags_beyond_end()
1279 assert_eq!( in flags_beyond_end()
1286 assert_eq!(output[0], Val::Flags(vec![])); in flags_beyond_end()
1289 assert_eq!(output[0], Val::Flags(vec!["a".to_string()])); in flags_beyond_end()
1301 assert_eq!(run.call(&mut store, (0,))?, (F::empty(),)); in flags_beyond_end()
1302 assert_eq!(run.call(&mut store, (1,))?, (F::A,)); in flags_beyond_end()
1303 assert_eq!(run.call(&mut store, (2,))?, (F::B,)); in flags_beyond_end()
1304 assert_eq!(run.call(&mut store, (3,))?, (F::A | F::B,)); in flags_beyond_end()
1305 assert_eq!(run.call(&mut store, (4,))?, (F::empty(),)); in flags_beyond_end()
1306 assert_eq!(run.call(&mut store, (5,))?, (F::A,)); in flags_beyond_end()