Add math_atan2 unit test

This commit is contained in:
Nadya Febiana Djojosantoso
2018-10-11 15:14:08 -07:00
parent d822efa322
commit da48f3c66f

View File

@@ -36,6 +36,11 @@
<next>
<block type="procedures_callnoreturn">
<mutation name="test random fraction"></mutation>
<next>
<block type="procedures_callnoreturn">
<mutation name="test atan2"></mutation>
</block>
</next>
</block>
</next>
</block>
@@ -1881,4 +1886,36 @@
</block>
</statement>
</block>
<block type="procedures_defnoreturn" y="5938" x="13">
<field name="NAME">test atan2</field>
<comment w="160" h="80" pinned="false">Describe this function...</comment>
<statement name="STACK">
<block type="unittest_assertequals">
<value name="MESSAGE">
<block type="text">
<field name="TEXT">atan2</field>
</block>
</value>
<value name="ACTUAL">
<block type="math_atan2">
<value name="X">
<block type="math_number">
<field name="NUM">-1</field>
</block>
</value>
<value name="Y">
<block type="math_number">
<field name="NUM">-1</field>
</block>
</value>
</block>
</value>
<value name="EXPECTED">
<block type="math_number">
<field name="NUM">-135</field>
</block>
</value>
</block>
</statement>
</block>
</xml>