public function distinct_until_changed_comparer_throws()
{
$xs = $this->createHotObservable([onNext(150, 1), onNext(210, 2), onNext(220, 3), onCompleted(250)]);
$results = $this->scheduler->startWithCreate(function () use($xs) {
return $xs->distinctUntilChanged(function ($x, $y) {
throw new \Exception('ex');
});
});
$this->assertMessages([onNext(210, 2), onError(220, new \Exception('ex'))], $results->getMessages());
}