Skip to content

Instantly share code, notes, and snippets.

Manuel Rivero trikitrok

Block or report user

Report or block trikitrok

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fizzbuzz_test_nums_as_string.clj
(ns fizzbuzz-pbt.core-test
(:require
;; other requires
[fizzbuzz-pbt.core :as sut]))
;; ...
;; some helpers
;; ...
(facts
View fizzbuzz_pbt_core_complete.clj
(ns fizzbuzz-pbt.core
(:require
[clojure.string :as string]))
(defn fizzbuzz []
(map #(string/replace (str %1 %2) #"^$" (str %3))
(cycle ["" "" "Fizz"])
(cycle ["" "" "" "" "Buzz"])
(range 1 101)))
View fizzbuzz_pbt_core_test_complete.clj
(ns fizzbuzz-pbt.core-test
(:require
[midje.sweet :refer :all]
[clojure.set :as set]
[clojure.test.check.generators :as gen]
[midje.experimental :refer [for-all]]
[fizzbuzz-pbt.core :as sut]))
(defn- multiples-of [n]
(iterate #(+ % n) n))
View fizzbuzz_pbt_core_test_fizz_buzz_fizzbuzz.clj
(ns fizzbuzz-pbt.core-test
(:require
;; other requires
[fizzbuzz-pbt.core :as sut]))
;; ...
;; some helpers
;; ...
(facts
View fizzbuzz_pbt_core_fizz_buzz.clj
(ns fizzbuzz-pbt.core)
(defn fizzbuzz []
(take 100 (map #(str %1 %2)
(cycle ["" "" "Fizz"])
(cycle ["" "" "" "" "Buzz"]))))
View fizzbuzz_pbt_core_test_fizz_buzz.clj
(ns fizzbuzz-pbt.core-test
(:require
;; other requires
[fizzbuzz-pbt.core :as sut]))
;; ...
;; some helpers
;; ...
(facts
View fizzbuzz_pbt_core_fizz.clj
(ns fizzbuzz-pbt.core)
(defn fizzbuzz []
(take 100 (cycle ["" "" "Fizz"])))
View fizzbuzz_pbt_core_test_fizz.clj
(ns fizzbuzz-pbt.core-test
(:require
[midje.sweet :refer :all]
[clojure.set :as set]
[clojure.test.check.generators :as gen]
[midje.experimental :refer [for-all]]
[fizzbuzz-pbt.core :as sut]))
(defn- multiples-of [n]
(iterate #(+ % n) n))
View gilded_rose_tests.js
import Shop from "./Shop";
import Item from "./Item";
const MIN_QUALITY = 0;
const MAX_QUALITY = 50;
test("sellIn decreases every day", () => {
const item = regularItem(1, 30);
const shop = new Shop([item]);
View QueryStringBuilder.php
<?php
namespace Trovit\B2B\Redirect\Tests\integration\Controller;
class QueryStringBuilder
{
const CONNECTOR = '&';
const START = '/?';
private $brand;
You can’t perform that action at this time.