- Timestamp:
- Dec 13, 2019, 7:54:05 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0f4527d
- Parents:
- 7799f79
- Location:
- tests/vector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/vector/.expect/vec3_float.txt
r7799f79 rae09808 14 14 s*v:<4.5,8.25,300.9> 15 15 ?*=?:<4.5,8.25,300.9> 16 ?*?(vec):<2.,6.,13.5> 17 ?*=?(vec):<2.,6.,13.5> 16 18 ?/?:<0.666667,-0.0333333,15.> 17 19 ?/=?:<0.666667,-0.0333333,15.> 20 ?/?(vec):<1.,-0.0333333,0.666667> 21 ?/=?(vec):<1.,-0.0333333,0.666667> 18 22 dot_1:0. 19 23 dot_2:37.8 -
tests/vector/vec3_float.cfa
r7799f79 rae09808 47 47 sout | "?*=?:" | v1; 48 48 49 { 50 vec3(float) u = {1, 2, 3}; 51 vec3(float) v = {2, 3, 4.5f}; 52 sout | "?*?(vec):" | (u * v); 53 sout | "?*=?(vec):" | (u *= v); 54 } 55 49 56 v1 = (vec3(float)){2, -0.1f, 45}; 50 57 sout | "?/?:" | (v1 / 3.f); … … 52 59 v1 /= 3.f; 53 60 sout | "?/=?:" | v1; 61 62 { 63 vec3(float) u = {2, -0.1f, 3}; 64 vec3(float) v = {2, 3, 4.5f}; 65 sout | "?/?(vec):" | (u / v); 66 sout | "?/=?(vec):" | (u /= v); 67 } 54 68 55 69 v1 = (vec3(float)){4,2,3};
Note: See TracChangeset
for help on using the changeset viewer.