Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix featurized integration test (#1621)
Browse files Browse the repository at this point in the history
Fix featurized integration test
  • Loading branch information
jackcmay authored Oct 26, 2018
1 parent b28fbfa commit 7ab6535
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/programs.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
extern crate bincode;
extern crate elf;
extern crate serde_derive;
extern crate solana;
extern crate solana_sdk;

use bincode::serialize;
use serde_derive::Serialize;
use solana::bank::Bank;
#[cfg(feature = "bpf_c")]
use solana::bpf_loader;
Expand All @@ -13,8 +15,6 @@ use solana::mint::Mint;
use solana::native_loader;
use solana::signature::{Keypair, KeypairUtil};
use solana::system_transaction::SystemTransaction;
#[cfg(feature = "bpf_c")]
use solana::tictactoe_program::Command;
use solana::transaction::Transaction;
use solana_sdk::pubkey::Pubkey;
#[cfg(feature = "bpf_c")]
Expand Down Expand Up @@ -334,6 +334,15 @@ fn test_program_bpf_noop_c() {
);
}

#[derive(Debug, Serialize)]
#[repr(C)]
pub enum Command {
Init, // player X initializes a new game
Join(i64), // player O wants to join (seconds since UNIX epoch)
KeepAlive(i64), // player X/O keep alive (seconds since UNIX epoch)
Move(u8, u8), // player X/O mark board position (x, y)
}

#[cfg(feature = "bpf_c")]
struct TicTacToe {
game: Keypair,
Expand Down

0 comments on commit 7ab6535

Please sign in to comment.