From 2ebcbd9efd8b63edde92d0a3590b6b45a1ea0256 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 14 Jan 2020 15:51:27 -0800 Subject: [PATCH] go/printer: add missing test files Change-Id: If5522bcf0f75a86b7aa36ed853a1349ad4a2a1f4 --- src/go/printer/testdata/contracts.golden | 23 ++++++++++++++++++++++ src/go/printer/testdata/contracts.input | 25 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/go/printer/testdata/contracts.golden create mode 100644 src/go/printer/testdata/contracts.input diff --git a/src/go/printer/testdata/contracts.golden b/src/go/printer/testdata/contracts.golden new file mode 100644 index 0000000000..1a8695b264 --- /dev/null +++ b/src/go/printer/testdata/contracts.golden @@ -0,0 +1,23 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package contracts + +contract _(){} +contract _(A, B, C){} +contract ( + C0(){} + C1(T){} + C2(A, B, C){} +) + +contract _(T){T m()} + +type _(type T) struct{} +type _(type A C) struct{} +type _(type A, B, C C) struct{} + +func _(type T)() {} +func _(type A C)() {} +func _(type A, B, C C)() {} diff --git a/src/go/printer/testdata/contracts.input b/src/go/printer/testdata/contracts.input new file mode 100644 index 0000000000..eec6c5555c --- /dev/null +++ b/src/go/printer/testdata/contracts.input @@ -0,0 +1,25 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package contracts + +contract _ (){} +contract _ (A, B, C){} +contract( + C0 (){} + C1 (T){} + C2 (A, B, C){} +) + +contract _(T) { + T m() +} + +type _(type T) struct{} +type _(type A C) struct{} +type _(type A, B, C C) struct{} + +func _(type T)() {} +func _(type A C)() {} +func _(type A, B, C C)() {}