Thread: [Kotlin] Random Permutation

Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 52
  1. #11  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by Velocity View Post
    by converting them into Perl
    Why would you use Perl instead of Kotlin?
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  2. Thankful user:


  3. #12  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    28
    Posts
    2,028
    Thanks given
    1,013
    Thanks received
    2,376
    Rep Power
    4112
    Quote Originally Posted by Tyluur View Post
    Why would you use Perl instead of Kotlin?
    my brain oxygen flow would stop sooner
    xxxxxxx
    Reply With Quote  
     

  4. Thankful users:


  5. #13  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    Quote Originally Posted by Tyluur View Post
    Code:
     @Test
    	fun test1000() = testArray(fillArray(1000))
    	
     @Test
    	fun test100() = testArray(fillArray(100))
    	
     @Test
    	fun test10() = testArray(fillArray(10))
    	
     @Test
    	fun test5() = testArray(fillArray(5))
    	
     @Test
    	fun test2() = testArray(fillArray(2))
    	
     @Test
    	fun test1() = testArray(fillArray(1))
    I would've used one function to test for a dynamic array randomization.
    How would that add any additional test coverage compared to what I have?
    Reply With Quote  
     

  6. #14  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by Velocity View Post
    my brain oxygen flow would stop sooner
    engrish bro what r u tryna say

    Quote Originally Posted by Gluon View Post
    How would that add any additional test coverage compared to what I have?
    That's one way you could improve the tests. Another way would be to test the application of this. Perhaps extend this to collections which are indexable and extend that mf scope.
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  7. #15  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    28
    Posts
    2,028
    Thanks given
    1,013
    Thanks received
    2,376
    Rep Power
    4112
    Quote Originally Posted by Tyluur View Post
    engrish bro what r u tryna say
    I'D DIE QUICKER, MY BROTHER

    Quote Originally Posted by Tyluur View Post
    extend that mf scope.
    didn't think you'd also browse r-s strapped... can't trust no mf these days dawg
    xxxxxxx
    Reply With Quote  
     

  8. #16  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by Velocity View Post
    I'D DIE QUICKER, MY BROTHER

    didn't think you'd also browse r-s strapped... can't trust no mf these days dawg
    ask me bout my last year. i gotta keep that mf thang on me.

    ot - u gonna drop that mf perl code or is jonathan gonna do it for u
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  9. #17  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    Quote Originally Posted by Tyluur View Post
    engrish bro what r u tryna say



    That's one way you could improve the tests. Another way would be to test the application of this. Perhaps extend this to collections which are indexable and extend that mf scope.
    Would be useless to post unit tests of applications from my framework source code which users of this snippet wont have access to. And that's exactly what those extension functions are "doing" isn't it? They're extension functions on built in collections classes. I didn't have to post the Random class either but cbf with the "Class not found io.insignia.api.utils.Random" posts.
    Reply With Quote  
     

  10. #18  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    Quote Originally Posted by Gluon View Post
    Would be useless to post unit tests of applications from my framework source code which users of this snippet wont have access to. And that's exactly what those extension functions are "doing" isn't it? They're extension functions on built in collections classes. I didn't have to post the Random class either but cbf with the "Class not found io.insignia.api.utils.Random" posts.
    The various test cases you have are arguably useless as well. What's the thought process behind them?
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  11. #19  
    Registered Member
    Velocity's Avatar
    Join Date
    Jan 2009
    Age
    28
    Posts
    2,028
    Thanks given
    1,013
    Thanks received
    2,376
    Rep Power
    4112
    Quote Originally Posted by Tyluur View Post
    The various test cases you have are arguably useless as well. What's the thought process behind them?
    how is it useless, it fucking tests if the permutations work by filling a linear set, and permutation should then remove all elements if permutation worked. remainder elements or failure to remove would indicate a failed implementation
    xxxxxxx
    Reply With Quote  
     

  12. Thankful user:


  13. #20  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    Quote Originally Posted by Tyluur View Post
    The various test cases you have are arguably useless as well. What's the thought process behind them?
    To ensure that its actually generating a unique set of random indices that cover the entire scope of the array/collection you're using them on. That no indices are missing/duplicated/wrong.
    Reply With Quote  
     

Page 2 of 6 FirstFirst 1234 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Some Random Events
    By Eleclion in forum Tutorials
    Replies: 4
    Last Post: 05-15-2007, 11:38 PM
  2. Guardian Random Events
    By Eleclion in forum Tutorials
    Replies: 3
    Last Post: 05-12-2007, 08:21 PM
  3. Some Random S**t
    By Darklordants Evil Bro in forum Showcase
    Replies: 2
    Last Post: 04-13-2007, 09:42 PM
  4. A few Random Renders...
    By oblak10 in forum General
    Replies: 2
    Last Post: 04-02-2007, 04:31 AM
  5. my latest sigs :D and random GFX
    By Oblak Lol in forum Showcase
    Replies: 10
    Last Post: 03-31-2007, 10:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •