Git Product home page Git Product logo

Comments (7)

vvnkr avatar vvnkr commented on June 17, 2024

Use do_eval = False in test_function("type", ...). np.genfromtxt(file , delimiter = ",", names = True , dtype = None) is not the same two times, even with numpy.testing.assert_equal.

import numpy as np
np.testing.assert_equal(np.genfromtxt(file , delimiter = ",", names = True , dtype = None), np.genfromtxt(file , delimiter = ",", names = True , dtype = None))

Throws an AssertionError.

from pythonwhat.

hugobowne avatar hugobowne commented on June 17, 2024

thanks. it works now: but aren't we testing type(data) == type(data), not that the arrays are equal?

from pythonwhat.

vvnkr avatar vvnkr commented on June 17, 2024

type(data) is an argument of print(), so you're testing what you're suggesting with test_function("print", ...). With test_function("type", ...), you're testing the argument of type(...), which is data.

from pythonwhat.

vvnkr avatar vvnkr commented on June 17, 2024

It will be live on Monday. I've tested your SCT with the fix and it worked so you don't have to change that. I'm currently at home and can't seem to reach the VPN here, which I need to push to production. Once in the office again on Monday I'll push it first thing in the morning :-).

from pythonwhat.

hugobowne avatar hugobowne commented on June 17, 2024

gr8 thx sounds good to me have a nice weekend!!

from pythonwhat.

vvnkr avatar vvnkr commented on June 17, 2024

Your SCT should work now

from pythonwhat.

vvnkr avatar vvnkr commented on June 17, 2024

Woooops those last two comments of mine should've been on #36. This issue was closed, right?

from pythonwhat.

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.