Skip to content

Added test framework example #5

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

Closed
wants to merge 1 commit into from
Closed

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Nov 26, 2014

Here you go dude. I've set up an example of a test framework you can use. Just keep adding entries into the struct slice. Also, if you use my .vimrc and my plugins it will automatically format code for you, as well as automatically add / remove imports so you don't have to do that at all.

All of the other changes besides the function I've added were done by gofmt automatically.

Relates to #3

t.Errorf("Carry flag clear")
}
if (cpu.ac != 1) {
if cpu.ac != 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only other change I did besides the function I've added. The test was expecting 0 here so I assumed you made a mistake. Did you not run them?

@gbbr gbbr force-pushed the 103-tests-plus-plus branch from b1e7d4b to cd409a0 Compare November 26, 2014 20:24
@gbbr gbbr closed this Nov 26, 2014
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

Successfully merging this pull request may close these issues.

1 participant