Skip to content

Added Bubble Sort in Dart#1697

Merged
jrg94 merged 2 commits intoTheRenegadeCoder:masterfrom
slashdoom:dart-bubble-sort
Oct 18, 2019
Merged

Added Bubble Sort in Dart#1697
jrg94 merged 2 commits intoTheRenegadeCoder:masterfrom
slashdoom:dart-bubble-sort

Conversation

@slashdoom
Copy link

Congrats on taking the first step to contributing to the Sample Programs repository maintained by [The Renegade Coder][1]! For simplicity, please make sure that your pull request includes one and only one contribution.

Complete the Applicable Sections Below

Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.

Code Snippets

  • I named the pull request using Added/Updated <Sample Program> in <Language> format
  • I created/updated the language README
    • I added the sample program name to the README
    • I added fun facts (i.e. debut, developer, typing, etc.)
    • I added reference link(s) to the README
    • I added solution citations when necessary (see [plagiarism][2])

Documentation

  • I named the pull request using Added/Updated <Sample Program> in <Language> Article format
  • I followed the applicable article template
    • I added/updated a [language article][4] (i.e. The Python Programming Language)
    • I added/updated a [code snippet article][3] (i.e. Hello World in Perl)
    • I added/updated a [project article][5] (i.e. Fizz Buzz in Every Language)

Testing

  • I named the pull request using Added/Updated <Language>/<Project> Testing format
  • I followed the testinfo template, if applicable

Notes

@slashdoom
Copy link
Author

Testing

$ dart bubble-sort.dart          
Usage: please provide a list of at least two integers to sort in the format "1, 2, 3, 4, 5"

$ dart bubble-sort.dart ""
Usage: please provide a list of at least two integers to sort in the format "1, 2, 3, 4, 5"

$ dart bubble-sort.dart 1 
Usage: please provide a list of at least two integers to sort in the format "1, 2, 3, 4, 5"

$ dart bubble-sort.dart "4 5 3"
Usage: please provide a list of at least two integers to sort in the format "1, 2, 3, 4, 5"

$ dart bubble-sort.dart 4 5 3  
Usage: please provide a list of at least two integers to sort in the format "1, 2, 3, 4, 5"

$ dart bubble-sort.dart "4, 5, 3, 1, 2"
1, 2, 3, 4, 5

$ dart bubble-sort.dart "4, 5, 3, 1, 4, 2"
1, 2, 3, 4, 4, 5

$ dart bubble-sort.dart "1, 2, 3, 4, 5"
1, 2, 3, 4, 5

$ dart bubble-sort.dart "9, 8, 7, 6, 5, 4, 3, 2, 1"
1, 2, 3, 4, 5, 6, 7, 8, 9

@jrg94
Copy link
Member

jrg94 commented Oct 18, 2019

@auroq just added automated testing for dart, so I'm rerunning the build now. We'll see how things shake out (although I trust your thorough testing).

@jrg94 jrg94 requested a review from a team October 18, 2019 15:59
@jrg94 jrg94 self-assigned this Oct 18, 2019
@jrg94 jrg94 added bubble sort See: https://sampleprograms.io/projects/bubble-sort/ enhancement Any code that improves the repo hacktoberfest Hacktoberfest related labels Oct 18, 2019
@jrg94 jrg94 added this to the 500 Code Snippets milestone Oct 18, 2019
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌲

@jrg94 jrg94 merged commit a9816b6 into TheRenegadeCoder:master Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bubble sort See: https://sampleprograms.io/projects/bubble-sort/ enhancement Any code that improves the repo hacktoberfest Hacktoberfest related

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add Bubble Sort in Dart

3 participants