rust: rename some test cases for clarity

This commit is contained in:
Alex Beregszaszi 2019-07-04 16:36:25 +01:00
parent 6bc52edf25
commit 96a0dd224e
1 changed files with 6 additions and 6 deletions

View File

@ -437,7 +437,7 @@ mod tests {
use super::*;
#[test]
fn new_result() {
fn result_new() {
let r = ExecutionResult::new(ffi::evmc_status_code::EVMC_FAILURE, 420, None);
assert!(r.get_status_code() == ffi::evmc_status_code::EVMC_FAILURE);
@ -461,7 +461,7 @@ mod tests {
}
#[test]
fn from_ffi() {
fn result_from_ffi() {
let f = ffi::evmc_result {
status_code: ffi::evmc_status_code::EVMC_SUCCESS,
gas_left: 1337,
@ -482,7 +482,7 @@ mod tests {
}
#[test]
fn into_heap_ffi() {
fn result_into_heap_ffi() {
let r = ExecutionResult::new(
ffi::evmc_status_code::EVMC_FAILURE,
420,
@ -508,7 +508,7 @@ mod tests {
}
#[test]
fn into_heap_ffi_empty_data() {
fn result_into_heap_ffi_empty_data() {
let r = ExecutionResult::new(ffi::evmc_status_code::EVMC_FAILURE, 420, None);
let f: *const ffi::evmc_result = r.into();
@ -526,7 +526,7 @@ mod tests {
}
#[test]
fn into_stack_ffi() {
fn result_into_stack_ffi() {
let r = ExecutionResult::new(
ffi::evmc_status_code::EVMC_FAILURE,
420,
@ -551,7 +551,7 @@ mod tests {
}
#[test]
fn into_stack_ffi_empty_data() {
fn result_into_stack_ffi_empty_data() {
let r = ExecutionResult::new(ffi::evmc_status_code::EVMC_FAILURE, 420, None);
let f: ffi::evmc_result = r.into();