File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 strategy :
1919 matrix :
2020 include :
21- - os : " macos-13"
21+ # - os: "macos-13"
2222 - os : " macos-14"
2323 fail-fast : false
2424
Original file line number Diff line number Diff line change @@ -24,8 +24,9 @@ namespace cmcpp
2424 return ValType::Variant;
2525 case ValType::Result:
2626 return ValType::Variant;
27+ default :
28+ return t;
2729 }
28- return t;
2930 }
3031
3132 bool convert_int_to_bool (uint8_t i)
Original file line number Diff line number Diff line change @@ -106,6 +106,24 @@ TEST_CASE("Float")
106106 flat_v = lower_flat (*cx, std::numeric_limits<double >::infinity ());
107107 b = lift_flat<float64_t >(*cx, flat_v);
108108 CHECK (std::isnan (b));
109+
110+ using FloatTuple = tuple_t <float32_t , float64_t >;
111+ FloatTuple ft = {42.0 , 43.0 };
112+ auto flat_ft = lower_flat (*cx, ft);
113+ auto ft2 = lift_flat<FloatTuple>(*cx, flat_ft);
114+ CHECK (ft == ft2);
115+
116+ using FloatList = list_t <float32_t >;
117+ FloatList fl = {42.0 , 43.0 };
118+ auto flat_fl = lower_flat (*cx, fl);
119+ auto fl2 = lift_flat<FloatList>(*cx, flat_fl);
120+ CHECK (fl == fl2);
121+
122+ using Float64List = list_t <float64_t >;
123+ Float64List fl64 = {42.0 , 43.0 };
124+ auto flat_fl64 = lower_flat (*cx, fl64);
125+ auto fl642 = lift_flat<Float64List>(*cx, flat_fl64);
126+ CHECK (fl64 == fl642);
109127}
110128
111129const char *const hw = " hello World!" ;
You can’t perform that action at this time.
0 commit comments