ie => i.e.
Pas de point à la fin
Et en plus ces tests étaient détectés automatiquement par la chaîne de build Jenkins, exécutés tout le temps lors de mon développement…
(ns prime-numbers.core) | |
; http://clj-me.cgrand.net/2009/07/30/everybody-loves-the-sieve-of-eratosthenes/ | |
(defn primes3 [max] | |
(let [enqueue (fn [sieve n factor] | |
(let [m (+ n (+ factor factor))] | |
(if (sieve m) | |
(recur sieve m factor) | |
(assoc sieve m factor)))) | |
next-sieve (fn [sieve candidate] |
(ns Player | |
(:gen-class) | |
(:import (java.io StringReader) | |
(clojure.lang LineNumberingPushbackReader))) | |
;--------------------------------------------------------------- | |
; _ _ _ _ _ _ | |
; _ _| |_(_) (_) |_(_) ___ ___ | |
; _____| | | | __| | | | __| |/ _ \/ __| | |
; |_____| |_| | |_| | | | |_| | __/\__ \ |
/* | |
* The MIT License | |
* | |
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, | |
* Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, | |
* Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
// Learn more about F# at http://fsharp.net. See the 'F# Tutorial' project | |
// for more guidance on F# programming. | |
#light | |
open Microsoft.FSharp.Reflection | |
let Fail message = failwith message | |
let IsTrue(success) = if not success then failwith "Expected true" | |
let AreEqual(expected, actual) = | |
if not (expected = actual) then |
F# Interactive for F# 3.1 (Open Source Edition) | |
Freely distributed under the Apache 2.0 Open Source License | |
For help type #help;; | |
> | |
> | |
[BuildingCard {color = Blue; | |
number = 1;}; BuildingCard {color = Red; | |
number = 1;}; | |
BuildingCard {color = Yellow; |
The Romans wrote their numbers using letters; specifically the letters 'I' meaning '1', 'V' meaning '5', 'X' meaning '10', 'L' meaning '50', 'C' meaning '100', 'D' meaning '500', and 'M' meaning '1000'.
There were certain rules that the numerals followed which should be observed:
(ns Player | |
(:gen-class) | |
(:import (java.io StringReader) | |
(clojure.lang LineNumberingPushbackReader PersistentQueue)) | |
(:use clojure.set)) | |
;--------------------------------------------------------------- | |
; _ _ _ _ _ _ | |
; _ _| |_(_) (_) |_(_) ___ ___ |
import java.io.ByteArrayOutputStream; | |
import java.io.FilterInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintStream; | |
import java.util.*; | |
/** | |
* | |
*/ |