Giter Site home page Giter Site logo

chtmlescape's People

Contributors

mbucc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chtmlescape's Issues

tests are broken

stephenmathieson at MBP in ~/repos/github.com/mbucc/chtmlescape on master
$ make test
(cd regress ; make)
gcc -Wall -I./deps/tap.c -o test test.c deps/tap.c/tap.c ../htmlescape.c
test.c:76:28: warning: incompatible pointer types passing 'char *' to parameter of type 'char **'; take the address with & [-Wincompatible-pointer-types]
        lives_ok( { htmlescape(0, result); }, "passing null src string should work." );
                                  ^~~~~~
                                  &
./deps/tap.c/tap.h:64:44: note: expanded from macro 'lives_ok'
#define lives_ok(...)    dies_ok_common(0, __VA_ARGS__)
                                           ^
./deps/tap.c/tap.h:94:13: note: expanded from macro 'dies_ok_common'
            code                                            \
            ^
./../htmlescape.h:1:39: note: passing argument to parameter 'out' here
int     htmlescape(const char *in, char **out);
                                          ^
test.c:76:28: warning: incompatible pointer types passing 'char *' to parameter of type 'char **'; take the address with & [-Wincompatible-pointer-types]
        lives_ok( { htmlescape(0, result); }, "passing null src string should work." );
                                  ^~~~~~
                                  &
./deps/tap.c/tap.h:64:44: note: expanded from macro 'lives_ok'
#define lives_ok(...)    dies_ok_common(0, __VA_ARGS__)
                                           ^
./deps/tap.c/tap.h:104:14: note: expanded from macro 'dies_ok_common'
            {code}                                          \
             ^
./../htmlescape.h:1:39: note: passing argument to parameter 'out' here
int     htmlescape(const char *in, char **out);
                                          ^
2 warnings generated.
./test
1..6
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7 - passing null src string should work.
ok 8 - passing null dst pointer should work.
ok 9 - both args null should work
# Looks like you planned 6 tests but ran 9.
make[1]: *** [all] Error 255
make: *** [test] Error 2

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.