• Binbin's avatar
    Fix double negative nan test, ignoring sign (#11506) · a4bcdbcf
    Binbin authored
    The test introduced in #11482 fail on ARM (extra CI):
    ```
    *** [err]: RESP2: RM_ReplyWithDouble: NaN in tests/unit/moduleapi/reply.tcl
    Expected '-nan' to be equal to 'nan' (context: type eval line 3 cmd
    {assert_equal "-nan" [r rw.double 0 0]} proc ::test)
    
    *** [err]: RESP3: RM_ReplyWithDouble: NaN in tests/unit/moduleapi/reply.tcl
    Expected ',-nan' to be equal to ',nan' (context: type eval line 8 cmd
    {assert_equal ",-nan" [r rw.double 0 0]} proc ::test)
    ```
    
    It looks like there is no negative nan on ARM. 
    a4bcdbcf
reply.tcl 4.45 KB