// Copyright 2016 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'package:flutter/painting.dart';import'package:test/test.dart';voidmain(){test("TextSpan equals",(){TextSpana1=newTextSpan(text:'a');TextSpana2=newTextSpan(text:'a');TextSpanb1=newTextSpan(children:<TextSpan>[a1]);TextSpanb2=newTextSpan(children:<TextSpan>[a2]);TextSpanc1=newTextSpan();TextSpanc2=newTextSpan();expect(a1==a2,isTrue);expect(b1==b2,isTrue);expect(c1==c2,isTrue);expect(a1==b2,isFalse);expect(b1==c2,isFalse);expect(c1==a2,isFalse);expect(a1==c2,isFalse);expect(b1==a2,isFalse);expect(c1==b2,isFalse);});}