Ad
  • Custom User Avatar

    I forgot the floor() try to re-submit test pass but I don't have the 'final submit'

  • Custom User Avatar

    Hi,

    the javascript tests and the php are exactly the same.

        public function testMysteryFunction() {
            //a+b?
            $this->assertEquals(1,testit(0,1), "test a=0, b=1");
            $this->assertEquals(3,testit(1,2), "test a=1, b=2");
            $this->assertEquals(30, testit(10,20), "test a=10, b=20");
            //a*b?
            $this->assertEquals(1,testit(1,1), "test a=1, b=1");
            $this->assertEquals(3, testit(1,3), "test a=1, b=3");
            //try "Submit" find more...
        }
    

    You're right, the runner run only one testcase the testMysteryFunction with the same tests as the js, It's a kind of Describe(..). But I can make 5 sub-testcase.
    the server side test have 2 testcases (all the Test.assert, and 100 hundred random tests).

    thanks. I going to check the others translated katas in php.

  • Custom User Avatar

    Hello

    Php version Submitted

    Try to add some print and echo, but the it's break the test and it's failed with Kumite was published with failed tests!with 0 errors and 0 passeds.

    Thanks !

  • Custom User Avatar

    Thanks for your review.

    All your remarks are rights and I fixed them:

    • The tabulations are invisibles on the online editor.(but in vim-mode :/\t highlight them )
    • The expected and the actual are reverteds I translated a little bit to fast the javascript. I'll fix my other katas.

    Again thank for spend some time.

  • Custom User Avatar

    Your solution is clearly better. I didn't known the ucwords instruction

    I am sorry. it's my second translation.

    thank you for approve it.

  • Custom User Avatar

    Add the php translation

    please accepts. thanks.

  • Custom User Avatar

    Add the php Version php

    Thanks.

  • Custom User Avatar

    Add The Php Translation, Please Accept..

  • Custom User Avatar

    I add the php version.
    My first translation..

    thanks.

  • Custom User Avatar

    Nice kata.
    same remarks on the part one. the canvas doesn't work with my firefox/ubuntu.
    But chromium is ok. (so for me it's ready :-))

  • Custom User Avatar

    Nice kata.
    the showBarcode in the canvas doesn't work. It's all white for the first test and invisible for the other test.

    Thanks.
    http://imgur.com/02tytOY

    after check, it's because i use firefox for codewars, it's work fine with chromium..

  • Custom User Avatar
    • missing in the help the command server
    • A little typo missing: '\n post` in the help
    • the last part with the eval() was difficult. I don't know if my solution is the right way..

    I don't understand how the token is include in the form.

    It's was a really nice kata.

    thanks you for your help.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution