Hi people!
I'm a newbie to Twitter, a software developer, living in Buenos Aires,
Argentina, so I apologize my "Anglish" that is "Angel's English"..... Me
Tarzan, you Clojure.... :-)
I'm working on reimplementing some Clojure ideas in C#. I know you have a
CLR branch, I hope I will contribute to that branch, but now, I'm struggling
alone, so I could get on Clojure inner guts. I failed misserably configuring
Git in my machine with Vista, but I guess it's a problem to discuss in Git
forums.
My first question, or doubt, is:
- Is any test battery in Java, a la JUnit, to test clojure lib source code?
I didn't find such tests in the code, or I missed some repository?
I mean, Java test code, a la TDD.
In my test code (C#, Visual Studio 2008, Microsoft test library), I have
fragments like:
[TestMethod]
public void ShouldGetNullInPeek()
{
Assert.IsNull(EmptyList.Instance.Peek());
}
[TestMethod]
[ExpectedException(typeof(InvalidOperationException))]
public void ShouldRaiseWhenPop()
{
EmptyList.Instance.Pop();
}
But for me, it was difficult to know that PersistentList.EmptyList should
get null at Peek... I should read the code, but I didn't find any test that
describe such behavior... or that RT.seq(anEmptyList) should get null.
Actually, I'm taking another approach: reimplementing minicase of
Clojure top level expected behavior (implementing a list, a sequence, a
vector), instead of blind reimplementing the Java source code.
Any clue?
Angel "Java" Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---