Unified · Split
| @@ -34,6 +34,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) · 33 unmodified lines | ||
| 34 | 34 | return (f >= 0) ? f : -f; |
| 35 | 35 | case DMUO_SIN: |
| 36 | 36 | return sin(f); |
| 37 | + case DMUO_COS: | |
| 38 | + return cos(f); | |
| 37 | 39 | default: |
| 38 | 40 | av_assert0(!"not supported yet"); |
| 39 | 41 | return 0.f; |
| @@ -81,5 +83,7 @@ int main(int agrc, char **argv) · 41 unmodified lines | ||
| 81 | 83 | return 1; |
| 82 | 84 | if (test(DMUO_SIN)) |
| 83 | 85 | return 1; |
| 86 | + if (test(DMUO_COS)) | |
| 87 | + return 1; | |
| 84 | 88 | return 0; |
| 85 | 89 | } |