Giter Club home page Giter Club logo

Comments (3)

aaaaalbert avatar aaaaalbert commented on August 11, 2024

@XuefengHuang suggested we also test calling repypp.py with too few / many arguments. Good point!

I'll also add that we should test lines like
include some_lib.repy # Ensure that comments are ignored, even if preceded by whitespace

from seattlelib_v2.

XuefengHuang avatar XuefengHuang commented on August 11, 2024

I have added some unit tests to check different situations as the issue describes. This is my PR(#163).

from seattlelib_v2.

asm582 avatar asm582 commented on August 11, 2024

I have tested this on linux - ubuntu and below are the test cases that pass:

-rw-rw-r-- 1 cib cib 878 May 15 22:07 ut_seattlelibv2_repypp_samearguments.py
-rw-rw-r-- 1 cib cib 777 May 15 22:07 ut_seattlelibv2_repypp_noargument.py
-rw-rw-r-- 1 cib cib 1648 May 15 22:07 ut_seattlelibv2_repypp_multiplearguments.py
-rw-rw-r-- 1 cib cib 1133 May 15 22:07 ut_seattlelibv2_repypp_include_specifiedfile.py
-rw-rw-r-- 1 cib cib 1113 May 15 22:07 ut_seattlelibv2_repypp_include_non-existingfiles.py
-rw-rw-r-- 1 cib cib 1037 May 15 22:07 ut_seattlelibv2_repypp_include_noargument.py
-rw-rw-r-- 1 cib cib 1560 May 15 22:07 ut_seattlelibv2_repypp_include_multiplearguments.py
-rw-rw-r-- 1 cib cib 1274 May 15 22:07 ut_seattlelibv2_repypp_include_filecontent.py
-rw-rw-r-- 1 cib cib 1549 May 15 22:07 test_repypp_library.pyc

Below is the test case that fail:-

cib@cib-VirtualBox:~/xeufeng/seattlelib_v2/RUNNABLE$ python utf.py -f ut_seattlelibv2_repypp_specialcomments.py
Testing module: seattlelibv2

Running: ut_seattlelibv2_repypp_specialcomments.py [ FAIL ]

Standard out :
..............................Produced..............................
Error opening source file 'testfile_repypp_example1.repy # Ensure that comments are ignored, even if preceded by whitespace'
the result of repypp.py produces is not correct!

..............................Expected..............................

None

and test case leaves and trace of file that i think can be removed by os.remove, below is the file:

-rw-rw-r-- 1 cib cib 86 May 15 22:11 testfile_repypp_example3.repy

from seattlelib_v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.