Skip to content

Commit

Permalink
Remove old style indicator in codeblock
Browse files Browse the repository at this point in the history
  • Loading branch information
jpienaar committed Feb 2, 2020
1 parent 9779dc8 commit 09bfaa2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/content/getting_started/TestingGuide.md
Expand Up @@ -32,7 +32,7 @@ different aspects of the IR - such as the output of a transformation pass.

An example FileCheck test is shown below:

```mlir {.mlir}
```mlir
// RUN: mlir-opt %s -cse | FileCheck %s
// CHECK-LABEL: func @simple_constant
Expand All @@ -57,7 +57,7 @@ brittle tests that are essentially `diff` tests. FileCheck tests should be as
self-contained as possible and focus on testing the minimal set of
functionalities needed. Let's see an example:

```mlir {.mlir}
```mlir
// RUN: mlir-opt %s -cse | FileCheck %s
// CHECK-LABEL: func @simple_constant() -> (i32, i32)
Expand Down Expand Up @@ -94,7 +94,7 @@ IR output.
If we naively remove the unrelated `CHECK` lines in our source file, we may end
up with:

```mlir {.mlir}
```mlir
// CHECK-LABEL: func @simple_constant
func @simple_constant() -> (i32, i32) {
// CHECK-NEXT: %result = constant 1 : i32
Expand All @@ -116,7 +116,7 @@ as well as named
Utilizing the above, we end up with the example shown in the main
[FileCheck tests](#filecheck-tests) section.

```mlir {.mlir}
```mlir
// CHECK-LABEL: func @simple_constant
func @simple_constant() -> (i32, i32) {
/// Here we use a substitution variable as the output of the constant is
Expand Down Expand Up @@ -145,7 +145,7 @@ accessible via the `verify-diagnostics` flag in mlir-opt.

An example .mlir test running under `mlir-opt` is shown below:

```mlir {.mlir}
```mlir
// RUN: mlir-opt %s -split-input-file -verify-diagnostics
// Expect an error on the same line.
Expand Down

0 comments on commit 09bfaa2

Please sign in to comment.