The Changelog - Open Source moves fast. Keep up.

Open source moves fast. Keep up.

Brought to you by Adam and Wynn, The Changelog is what's fresh and new in open source.

/* 2009.12.03 */

CSpec - BDD with C

Very nice, readable syntax from CSpec that alllows you to do behavior driven development with C.

#include "cspec.h"

static int nbefore_each;

describe "CSpec before_each"
  before_each
    ++nbefore_each;
  end

  it "should be called before each spec"
    nbefore_each should equal 1
  end

  it "should be called before each spec"
   nbefore_each should equal 2
  end
end

[Source on GitHub]

← Back to The Changelog
blog comments powered by Disqus
  1. thechangelog posted this
← Back to The Changelog