Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test the class without main()? #6

Open
zhenyu-zhou opened this issue Jul 19, 2015 · 1 comment
Open

How to test the class without main()? #6

zhenyu-zhou opened this issue Jul 19, 2015 · 1 comment

Comments

@zhenyu-zhou
Copy link

Hello,

I meet problem when testing the class without main() method. The concolic.py seems to always look for main() and report errors when there is no main(). Anyone can point out how can I test the one without main()? I cannot find it in README.

Thanks!

@aurimrv
Copy link

aurimrv commented Jul 8, 2020

I have the same question. Actually, is there any additional documentation of Janala2?
Is it always necessary to import catg.CATG and use the provided readers like in the Testme.java file

public static void main(String[] args){
    int x = CATG.readInt(2);
    int y = CATG.readInt(1);
    testme(x,y);
    System.out.println("x = "+x+", y = "+y);
}

Or I can use regular Java readers' commands? What happens if I call concolic.py in a code like this?

public static void main(String[] args){
    int x = 2;
    int y = 1;
    testme(x,y);
    System.out.println("x = "+x+", y = "+y);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants