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

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

0 Members and 1 Guest 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: 9605
    • 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
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

FRex

  • Hero Member
  • *****
  • Posts: 1843
    • View Profile
    • My GitHub Page
    • 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
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

 

anything