Traffy.UnityPython icon indicating copy to clipboard operation
Traffy.UnityPython copied to clipboard

v0.1 plan: testsuites WIP

Open thautwarm opened this issue 3 years ago • 1 comments

All tests are written under the directory `UnityPython.Backend/tests/".

Language

Builtin Data Structures

The following test scripts are made so far. We use these scripts to test the methods bound for specific types.

  • [x] test_bool.py (Traffy.Objects/Bool.cs)
  • [ ] test_builtin_function.py (Traffy.Objects/BuiltinFunction.cs)
  • [ ] test_bytearray.py (..)
  • [ ] test_bytes.py
  • [ ] test_type.py ( type in Python; Traffy.Objects/Class.cs in C#)
  • [ ] test_dict.py
  • [ ] test_exceptions.py (there are many exceptions... testing could be painful)
  • [ ] test_float.py
  • [ ] test_generator.py
  • [ ] test_int.py
  • [ ] test_iter.py (Traffy.Objects/Iter.cs)
  • [ ] test_list.py
  • [ ] test_module.py
  • [ ] test_method.py
  • [x] test_None.py
  • [ ] test_object.py ( TrRawObject in Traffy.Objects/Object.cs)
  • [ ] test_property.py
  • [ ] test_ref.py
  • [ ] test_set.py
  • [ ] test_slice.py
  • [ ] test_staticmethod.py
  • [ ] test_classmethod.py
  • [ ] test_str.py
  • [ ] test_tuple.py
  • [ ] test_uniontype.py
  • [ ] test_func.py (Traffy.Objects/UserFunc.cs)

Builtin Modules

The complete list of UnityPython's builtin modules are not decided yet.

  • [ ] test_abc.py
  • ...

thautwarm avatar Mar 27 '22 13:03 thautwarm

@lfkdsk 来玩

thautwarm avatar Mar 27 '22 13:03 thautwarm