Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This pull request adds ScalaCheck property-based tests for UTF8String.

I'm going to push a followup commit to add additional tests; opening this early to get high-level feedback first.

@SparkQA
Copy link

SparkQA commented Jul 30, 2015

Test build #38994 has finished for PR 7780 at commit c7925f8.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class UTF8StringPropertyChecks extends FunSuite with GeneratorDrivenPropertyChecks with Matchers

@JoshRosen
Copy link
Contributor Author

Actually, I do not have time to work on this right now, but would be glad to have someone else take over and finish this. Note that this has uncovered a few bugs already: substring() and contains() can crash with ArrayIndexOutOfBounds exceptions and it looks like the trim() functions do not handle non 0x20 whitespace characters.

@JoshRosen JoshRosen closed this Jul 30, 2015
@SparkQA
Copy link

SparkQA commented Jul 30, 2015

Test build #39012 has finished for PR 7780 at commit 81a8a4f.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class UTF8StringPropertyChecks extends FunSuite with GeneratorDrivenPropertyChecks with Matchers

@yjshen
Copy link
Member

yjshen commented Jul 30, 2015

I'll take this over if you don't mind :)

@JoshRosen
Copy link
Contributor Author

Sounds good to me; thanks @yjshen!

asfgit pushed a commit that referenced this pull request Aug 1, 2015
This PR is based on the original work by JoshRosen in #7780, which adds ScalaCheck property-based tests for UTF8String.

Author: Josh Rosen <joshrosen@databricks.com>
Author: Yijie Shen <henry.yijieshen@gmail.com>

Closes #7830 from yjshen/utf8-property-checks and squashes the following commits:

593da3a [Yijie Shen] resolve comments
c0800e6 [Yijie Shen] Finish all todos in suite
52f51a0 [Josh Rosen] Add some more failing tests
49ed069 [Josh Rosen] Rename suite
9209c64 [Josh Rosen] UTF8String Property Checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants