dart-sdk/tests
Ömer Sinan Ağacan 8dbf923e89 Remove invalid inequal tear-off hash code test
`hashCode` requires that equal objects have the same hash code.

However it doesn't (and cannot) require that inequal objects have
different hash codes. Remove the invalid check.

This makes the test pass on dart2wasm, which currently implements
closure hash code as:

    // Simple hash code for now, we can optimize later
    @override
    int get hashCode => runtimeType.hashCode;

Note: this change alone does not make the whole file pass with
dart2wasm, there's another (unrelated) issue which will be fixed
separately.

Change-Id: Ibc83aee13fdbe48d1b2f7d8e720766b455c6b930
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286783
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2023-03-03 11:07:50 +00:00
..
co19 [dart2js, ddc] Skip flaky tests 2023-02-13 23:44:59 +00:00
co19_2 [dart2js, ddc] Skip flaky tests 2023-02-13 23:44:59 +00:00
corelib Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
corelib_2 [dart2js, ddc] Skip flaky tests 2023-02-13 23:44:59 +00:00
dartdevc [flip-modifiers]: opt out failing ddc tests from class modifiers 2023-03-02 20:27:25 +00:00
dartdevc_2 [test_runner] Add new name for ddc compiler 2023-02-09 18:32:58 +00:00
ffi [cfe/ffi] Fix Finalizable in for( in ) loops 2023-03-02 09:05:19 +00:00
ffi_2 [vm] Fix Dart_CObject_Type breaking change 2023-02-20 11:59:19 +00:00
language Remove invalid inequal tear-off hash code test 2023-03-03 11:07:50 +00:00
language_2 [tests] Fix expectations in language/async_star/async_star_await_for_test 2023-02-27 16:25:50 +00:00
lib [flip-modifiers] opt out from class modifiers some failing front end language tests 2023-03-02 20:40:20 +00:00
lib_2 Set tests that have mixin errors as 2.19. 2023-03-01 15:03:39 +00:00
modular [Reland][cfe] Support external constructor with final fields 2023-01-17 17:29:28 +00:00
standalone Reland "[build, vm] Access TLS with less code." 2023-03-02 23:07:16 +00:00
standalone_2 Fix unbalanced call to Dart_TypedDataAcquireData. 2023-02-14 01:44:17 +00:00
web [flip-modifiers]: opt out failing ddc tests from class modifiers 2023-03-02 20:27:25 +00:00
web_2 [test_runner] Unify name for passing DDC options 2023-02-14 20:13:57 +00:00
legacy_status_dart2js.csv Spelling tests 2022-12-19 12:56:47 +00:00
OWNERS
README.md

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.