Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What are you working on?  (Read 31077 times)

0 Members and 4 Guests are viewing this topic.

MorleyDev

  • Full Member
  • ***
  • Posts: 219
  • "It is not enough for code to work."
    • View Profile
    • http://www.morleydev.co.uk/
Re: What are you working on?
« Reply #45 on: October 07, 2013, 01:30:45 am »
What is this "Given()/When()/Then()" stuff?

The way my unit testing library, UnitTest11, handles tests. Instead of using the SetUp/Test/TearDown of the xUnit family of libraries it uses Given/When/Then/Finally. It more closely matches the way people often write unit tests: Arrange/Act/Assert/TearDown. The functions take a describing string and lambdas, which are the actual test logic.

When a fixture is ran, it builds up from the given/when/thens such that if you do
Given X
When U
Then A
Then B
When T
Then C
Finally O

Then the fixture will actually run as:
Given X When U Then A Finally O
Given X When U Then B Finally O
Given X When T Then C Finally O
UnitTest11 - A unit testing library in C++ written to take advantage of C++11.

All code is guilty until proven innocent, unworthy until tested, and pointless without singular and well-defined purpose.

Siile

  • Newbie
  • *
  • Posts: 15
    • View Profile
    • Email
Re: What are you working on?
« Reply #46 on: October 07, 2013, 02:43:45 pm »
Something nice...  ;D



And if anyone wonders, skeletons (Spine <3) make animating 2d super easy.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: What are you working on?
« Reply #47 on: October 07, 2013, 07:11:46 pm »
The way my unit testing library, UnitTest11, handles tests. Instead of using the SetUp/Test/TearDown of the xUnit family of libraries it uses Given/When/Then/Finally.
Ah! I only now saw that this was "just" the testing stuff. ;)

And if anyone wonders, skeletons (Spine <3) make animating 2d super easy.
I saw the picture and immediately knew it was Spine!
Unfortunately I haven't found something to use it for yet...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: What are you working on?
« Reply #48 on: October 14, 2013, 03:30:03 am »
Good stuff. ;) Lua, XML and component-esque system.
This is more or less experiment with Lua/C++ separation of concerns.
The images are bigger but I made them not explode the forum page, left click or right click + view image to see 1366x768 one.




The evil red visible at the bottom is from http://thelinuxbox.org/downloads/wallpapers/redhat.png :P
Back to C++ gamedev with SFML in May 2023