Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7896913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:00:58+00:00 2026-06-03T08:00:58+00:00

I started working my way through the Scala Koans , which is organized around

  • 0

I started working my way through the Scala Koans, which is organized around a suite of unit tests with blanks that one needs to fill in. (This idea was modeled after a similar Ruby Koans project.) You start the sbt tool running a test, and it admonishes:

[info]   + ***************************************** 
[info]   +  
[info]   +  
[info]   +  
[info]   + Please meditate on koan "None equals None" of suite "AboutEmptyValues" 
[info]   +  
[info]   +  
[info]   +  
[info]   + ***************************************** 

…and so you go look at this unit test and it says:

test("None equals None") {
  assert(None === __)
}

…and, after meditation, you realize that you should fill in the blank like this:

test("None equals None") {
  assert(None === None)
}

…and then it moves on to the next unit test.

My question, though, is what is this === operator? I can’t seem to find it anywhere. Is this a DSL operator defined in the Scala Koans project itself? Or is it part of the ScalaTest framework? Or in Scala proper?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:01:00+00:00Added an answer on June 3, 2026 at 8:01 am

    This is the triple-equals operator from ScalaTest. Have a look at this page: Getting Started with FunSuite. It says:

    ScalaTest lets you use Scala’s assertion syntax, but defines a triple
    equals operator (===) to give you better error messages. The following
    code would give you an error indicating only that an assertion failed:

    assert(1 == 2)
    

    Using triple equals instead would give you the more informative error
    message, “1 did not equal 2”:

    assert(1 === 2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was started working my way through the second edition of 'Lucene in Action'
I have started working my way through Practical Common Lisp and am looking for
So I'm just getting started with Python, and currently working my way through http://diveintopython3.ep.io/
I am working my way through Learn Cocoa on the Mac which was written
I need to access data from pre-existing tables. I've started working my way through
I just started working with play, and I modified the way I'm doing a
Started working on a new application this week that is running the latest rails
Ive started working on a product that uses license files. These files need to
Just started working through the Ruby chapter in Mr. Tate's Seven Language in Seven
Whilst writing working my way through a list of scripts I need to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.